Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage.
llvm-svn: 175264
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user