summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-02-15 12:30:38 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-02-15 12:30:38 +0000
commit6ecb1e78a9f497c2485037de384ea730f1ae440c (patch)
treebf1c8300391c04725e8fc3400bfeb9769157454f /llvm/lib/Support/SourceMgr.cpp
parentfd61b6f0c811a831c7b3fdbde4186b3975bbfef2 (diff)
downloadbcm5719-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.cpp4
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;
OpenPOWER on IntegriCloud