Simplify IntrinsicLowering and clarify that it is only for use by the
[oota-llvm.git] / lib / Target / TargetMachine.cpp
index e3ea42254c61f6a338f42b1ea45c3ac143fac188..e4ece7b4d52b4996504ae872e1b57be5469c50d8 100644 (file)
@@ -11,9 +11,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/Target/TargetAsmInfo.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Target/TargetOptions.h"
-#include "llvm/Type.h"
 #include "llvm/Support/CommandLine.h"
 using namespace llvm;
 
@@ -96,6 +96,7 @@ namespace {
 //
 
 TargetMachine::~TargetMachine() {
+  delete AsmInfo;
 }
 
 /// getRelocationModel - Returns the code generation relocation model. The
@@ -127,3 +128,4 @@ namespace llvm {
   /// and results are never NaNs or +-Infs.
   bool FiniteOnlyFPMath() { return UnsafeFPMath || FiniteOnlyFPMathOption; }
 }
+