Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage.

llvm-svn: 175264
This commit is contained in:
Benjamin Kramer
2013-02-15 12:30:38 +00:00
parent fd61b6f0c8
commit 6ecb1e78a9
7 changed files with 11 additions and 11 deletions

View File

@@ -248,8 +248,8 @@ SMDiagnostic::SMDiagnostic(const SourceMgr &sm, SMLoc L, StringRef FN,
std::sort(FixIts.begin(), FixIts.end());
}
void buildFixItLine(std::string &CaretLine, std::string &FixItLine,
ArrayRef<SMFixIt> FixIts, ArrayRef<char> SourceLine) {
static void buildFixItLine(std::string &CaretLine, std::string &FixItLine,
ArrayRef<SMFixIt> FixIts, ArrayRef<char> SourceLine){
if (FixIts.empty())
return;