diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 7547614a717..e446b61c4e4 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -13,6 +13,7 @@ #include "llvm/Target/TargetAsmInfo.h" #include "llvm/Target/TargetMachine.h" +#include "llvm/Target/TargetObjInfo.h" #include "llvm/Target/TargetOptions.h" #include "llvm/Support/CommandLine.h" using namespace llvm; @@ -104,6 +105,7 @@ namespace { TargetMachine::~TargetMachine() { delete AsmInfo; + delete ObjInfo; } /// getRelocationModel - Returns the code generation relocation model. The