[llvm-commits] CVS: llvm/lib/CodeGen/InstrSelection/InstrForest.cpp InstrSelection.cpp InstrSelectionSupport.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:44:35 PST 2003
Changes in directory llvm/lib/CodeGen/InstrSelection:
InstrForest.cpp updated: 1.49 -> 1.50
InstrSelection.cpp updated: 1.64 -> 1.65
InstrSelectionSupport.cpp updated: 1.57 -> 1.58
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+14 -1)
Index: llvm/lib/CodeGen/InstrSelection/InstrForest.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrForest.cpp:1.49 llvm/lib/CodeGen/InstrSelection/InstrForest.cpp:1.50
--- llvm/lib/CodeGen/InstrSelection/InstrForest.cpp:1.49 Thu Oct 23 12:39:37 2003
+++ llvm/lib/CodeGen/InstrSelection/InstrForest.cpp Tue Nov 11 16:41:33 2003
@@ -30,6 +30,8 @@
#include "Support/STLExtras.h"
#include "Config/alloca.h"
+namespace llvm {
+
//------------------------------------------------------------------------
// class InstrTreeNode
//------------------------------------------------------------------------
@@ -330,3 +332,5 @@
delete [] childArray;
return treeNode;
}
+
+} // End llvm namespace
Index: llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.64 llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.65
--- llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp:1.64 Thu Oct 23 12:39:37 2003
+++ llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp Tue Nov 11 16:41:33 2003
@@ -28,6 +28,8 @@
#include "Support/LeakDetector.h"
#include <vector>
+namespace llvm {
+
std::vector<MachineInstr*>
FixConstantOperandsForInstr(Instruction* vmInstr, MachineInstr* minstr,
TargetMachine& target);
@@ -82,6 +84,8 @@
};
}
+namespace llvm {
+
TmpInstruction::TmpInstruction(MachineCodeForInstruction& mcfi,
Value *s1, Value *s2, const std::string &name)
: Instruction(s1->getType(), Instruction::UserOp1, name)
@@ -114,6 +118,7 @@
LeakDetector::removeGarbageObject(this);
}
+} // End llvm namespace
bool InstructionSelection::runOnFunction(Function &F)
{
@@ -375,7 +380,6 @@
}
-
//===----------------------------------------------------------------------===//
// createInstructionSelectionPass - Public entrypoint for instruction selection
// and this file as a whole...
@@ -383,3 +387,5 @@
FunctionPass *createInstructionSelectionPass(TargetMachine &T) {
return new InstructionSelection(T);
}
+
+} // End llvm namespace
Index: llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
diff -u llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.57 llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.58
--- llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp:1.57 Thu Oct 23 12:39:37 2003
+++ llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp Tue Nov 11 16:41:33 2003
@@ -25,6 +25,7 @@
#include "llvm/DerivedTypes.h"
#include "../../Target/Sparc/SparcInstrSelectionSupport.h" // FIXME!
+namespace llvm {
// Generate code to load the constant into a TmpInstruction (virtual reg) and
// returns the virtual register.
@@ -257,3 +258,5 @@
return MVec;
}
+
+} // End llvm namespace
More information about the llvm-commits
mailing list