[llvm-commits] CVS: llvm/lib/CodeGen/MachineCodeForInstruction.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 9 00:31:02 PST 2004
Changes in directory llvm/lib/CodeGen:
MachineCodeForInstruction.cpp updated: 1.9 -> 1.10
---
Log message:
Finegrainify namespacification.
This should get hunked over to the Sparc backend, along with
MachineCodeForInstruction and a bunch of files in include/llvm/Codegen,
but those battles will have to wait for a later time.
---
Diffs of the changes: (+4 -9)
Index: llvm/lib/CodeGen/MachineCodeForInstruction.cpp
diff -u llvm/lib/CodeGen/MachineCodeForInstruction.cpp:1.9 llvm/lib/CodeGen/MachineCodeForInstruction.cpp:1.10
--- llvm/lib/CodeGen/MachineCodeForInstruction.cpp:1.9 Tue Nov 11 16:41:32 2003
+++ llvm/lib/CodeGen/MachineCodeForInstruction.cpp Fri Jan 9 00:30:18 2004
@@ -26,10 +26,9 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrAnnot.h"
#include "llvm/CodeGen/InstrSelection.h"
+using namespace llvm;
-namespace llvm {
-
-AnnotationID MCFI_AID(
+AnnotationID llvm::MCFI_AID(
AnnotationManager::getID("CodeGen::MachineCodeForInstruction"));
static Annotation *CreateMCFI(AnnotationID AID, const Annotable *, void *) {
@@ -53,8 +52,7 @@
}
-MachineCodeForInstruction::~MachineCodeForInstruction()
-{
+MachineCodeForInstruction::~MachineCodeForInstruction() {
// Let go of all uses in temp. instructions
dropAllReferences();
@@ -67,8 +65,5 @@
delete (*this)[i];
// Free the CallArgsDescriptor if it exists.
- if (callArgsDesc)
- delete callArgsDesc;
+ delete callArgsDesc;
}
-
-} // End llvm namespace
More information about the llvm-commits
mailing list