diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-15 12:30:38 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-15 12:30:38 +0000 |
commit | 6ecb1e78a9f497c2485037de384ea730f1ae440c (patch) | |
tree | bf1c8300391c04725e8fc3400bfeb9769157454f /llvm/lib/Support/SourceMgr.cpp | |
parent | fd61b6f0c811a831c7b3fdbde4186b3975bbfef2 (diff) | |
download | bcm5719-llvm-6ecb1e78a9f497c2485037de384ea730f1ae440c.tar.gz bcm5719-llvm-6ecb1e78a9f497c2485037de384ea730f1ae440c.zip |
Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage.
llvm-svn: 175264
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r-- | llvm/lib/Support/SourceMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index fa82265f380..fac3cad5cc2 100644 --- a/llvm/lib/Support/SourceMgr.cpp +++ b/llvm/lib/Support/SourceMgr.cpp @@ -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; |