diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-20 12:53:26 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-20 12:53:26 +0000 |
| commit | a74129adad44befb011b99e7c5c6dc158256f4c0 (patch) | |
| tree | 644a98cb5aab4eb829a10a363df4d8849e4fdbda /llvm/lib | |
| parent | 7ddd70527cf9d77ec84cfce37ea23b76dd0a1fc0 (diff) | |
| download | bcm5719-llvm-a74129adad44befb011b99e7c5c6dc158256f4c0.tar.gz bcm5719-llvm-a74129adad44befb011b99e7c5c6dc158256f4c0.zip | |
Symbol hygiene: Make sure declarations and definitions match, make helper functions static.
llvm-svn: 166376
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/MC/SubtargetFeature.cpp | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp b/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp index 0102ac708d0..ed94efb9355 100644 --- a/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp +++ b/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp @@ -51,7 +51,7 @@ struct MachineFunctionPrinterPass : public MachineFunctionPass { char MachineFunctionPrinterPass::ID = 0; } -char &MachineFunctionPrinterPassID = MachineFunctionPrinterPass::ID; +char &llvm::MachineFunctionPrinterPassID = MachineFunctionPrinterPass::ID; INITIALIZE_PASS(MachineFunctionPrinterPass, "print-machineinstrs", "Machine Function Printer", false, false) diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp index 81e3ff6afe4..2ae08692ae1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp @@ -635,6 +635,7 @@ void ScheduleDAGFast::ListScheduleBottomUp() { } +namespace { //===----------------------------------------------------------------------===// // ScheduleDAGLinearize - No scheduling scheduler, it simply linearize the // DAG in topological order. @@ -654,6 +655,7 @@ private: void ScheduleNode(SDNode *N); }; +} // end anonymous namespace void ScheduleDAGLinearize::ScheduleNode(SDNode *N) { if (N->getNodeId() != 0) diff --git a/llvm/lib/MC/SubtargetFeature.cpp b/llvm/lib/MC/SubtargetFeature.cpp index 378c4184a83..7625abd465f 100644 --- a/llvm/lib/MC/SubtargetFeature.cpp +++ b/llvm/lib/MC/SubtargetFeature.cpp @@ -119,8 +119,8 @@ void SubtargetFeatures::AddFeature(const StringRef String, } /// Find KV in array using binary search. -const SubtargetFeatureKV *Find(const StringRef S, const SubtargetFeatureKV *A, - size_t L) { +static const SubtargetFeatureKV *Find(StringRef S, const SubtargetFeatureKV *A, + size_t L) { // Make the lower bound element we're looking for SubtargetFeatureKV KV; KV.Key = S.data(); |

