diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index fc7c3ed27f3..3f8c9f8250c 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -27,6 +27,7 @@ #include "llvm/Support/FileUtilities.h" #include "llvm/Analysis/Verifier.h" #include "llvm/System/Signals.h" +#include "llvm/CodeGen/MachineDebugInfo.h" #include "llvm/Config/config.h" #include #include @@ -237,6 +238,9 @@ int main(int argc, char **argv) { sys::RemoveFileOnSignal(sys::Path(OutputFilename)); } } + + // Set up collection of debug information + Passes.add(createDebugInfoPass()); // Ask the target to add backend passes as necessary. if (Target.addPassesToEmitFile(Passes, *Out, FileType, Fast)) {