aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-09 06:30:18 +0000
committerChris Lattner <sabre@nondot.org>2004-01-09 06:30:18 +0000
commitd5da19707139e6236855d9e76d348c68272db0af (patch)
treef4184d7e5c55d238095a9fd5fbeeadd3903e4b77
parent2abcf524a15ec2db5a93d70b834ba10900f1ca0a (diff)
downloadexternal_llvm-d5da19707139e6236855d9e76d348c68272db0af.zip
external_llvm-d5da19707139e6236855d9e76d348c68272db0af.tar.gz
external_llvm-d5da19707139e6236855d9e76d348c68272db0af.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10731 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/MachineCodeForInstruction.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/CodeGen/MachineCodeForInstruction.cpp b/lib/CodeGen/MachineCodeForInstruction.cpp
index 000f3d1..a0982fe 100644
--- a/lib/CodeGen/MachineCodeForInstruction.cpp
+++ b/lib/CodeGen/MachineCodeForInstruction.cpp
@@ -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::dropAllReferences()
}
-MachineCodeForInstruction::~MachineCodeForInstruction()
-{
+MachineCodeForInstruction::~MachineCodeForInstruction() {
// Let go of all uses in temp. instructions
dropAllReferences();
@@ -67,8 +65,5 @@ MachineCodeForInstruction::~MachineCodeForInstruction()
delete (*this)[i];
// Free the CallArgsDescriptor if it exists.
- if (callArgsDesc)
- delete callArgsDesc;
+ delete callArgsDesc;
}
-
-} // End llvm namespace