More symbols that should be static.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 23 May 2013 16:09:15 +0000 (16:09 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 23 May 2013 16:09:15 +0000 (16:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182590 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
lib/Transforms/Utils/SimplifyCFG.cpp

index fa33a75c61b0f6825c60d870472f5f0af39ec586..dfa1ff5f51ad293bf6fe11e3cf7335c1f318edb4 100644 (file)
 
 using namespace llvm;
 
-bool CompileForDebugging;
-
 // -debug-compile - Command line option to inform opt and llc passes to
 // compile for debugging
-static cl::opt<bool, true>
-Debug("debug-compile", cl::desc("Compile for debugging"), cl::Hidden,
-      cl::location(CompileForDebugging), cl::init(false));
+static cl::opt<bool> CompileForDebugging("debug-compile",
+                                         cl::desc("Compile for debugging"),
+                                         cl::Hidden, cl::init(false));
 
 void NVPTXMCAsmInfo::anchor() {}
 
index 052ad855512f44396804fadb60e88887af0a667a..07c4d058c8d4f527ed84c8acb5eea459309badab 100644 (file)
@@ -1362,8 +1362,8 @@ static bool SinkThenElseCodeToEnd(BranchInst *BI1) {
 ///
 /// \return The pointer to the value of the previous store if the store can be
 ///         hoisted into the predecessor block. 0 otherwise.
-Value *isSafeToSpeculateStore(Instruction *I, BasicBlock *BrBB,
-                              BasicBlock *StoreBB, BasicBlock *EndBB) {
+static Value *isSafeToSpeculateStore(Instruction *I, BasicBlock *BrBB,
+                                     BasicBlock *StoreBB, BasicBlock *EndBB) {
   StoreInst *StoreToHoist = dyn_cast<StoreInst>(I);
   if (!StoreToHoist)
     return 0;