summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen
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/TableGen
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/TableGen')
-rw-r--r--llvm/lib/TableGen/Record.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp
index fcee93aac47..9ad20532d7e 100644
--- a/llvm/lib/TableGen/Record.cpp
+++ b/llvm/lib/TableGen/Record.cpp
@@ -1525,11 +1525,9 @@ Init *FieldInit::resolveReferences(Record &R, const RecordVal *RV) const {
return const_cast<FieldInit *>(this);
}
-void ProfileDagInit(FoldingSetNodeID &ID,
- Init *V,
- const std::string &VN,
- ArrayRef<Init *> ArgRange,
- ArrayRef<std::string> NameRange) {
+static void ProfileDagInit(FoldingSetNodeID &ID, Init *V, const std::string &VN,
+ ArrayRef<Init *> ArgRange,
+ ArrayRef<std::string> NameRange) {
ID.AddPointer(V);
ID.AddString(VN);
OpenPOWER on IntegriCloud