[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp

Jim Laskey jlaskey at apple.com
Thu Sep 7 15:07:10 PDT 2006



Changes in directory llvm/lib/Target:

TargetMachine.cpp updated: 1.53 -> 1.54
---
Log message:

Make target asm info a property of the target machine.


---
Diffs of the changes:  (+2 -0)

 TargetMachine.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.53 llvm/lib/Target/TargetMachine.cpp:1.54
--- llvm/lib/Target/TargetMachine.cpp:1.53	Sun Sep  3 23:06:01 2006
+++ llvm/lib/Target/TargetMachine.cpp	Thu Sep  7 17:06:40 2006
@@ -11,6 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/Target/TargetAsmInfo.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Target/TargetOptions.h"
 #include "llvm/Support/CommandLine.h"
@@ -95,6 +96,7 @@
 //
 
 TargetMachine::~TargetMachine() {
+  if (AsmInfo) delete AsmInfo;
 }
 
 /// getRelocationModel - Returns the code generation relocation model. The






More information about the llvm-commits mailing list