Adding MachineDebugInfo as a immutable pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25088 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Laskey 2006-01-04 13:42:02 +00:00
parent f9545d0a73
commit 292a1afb4a

View File

@ -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 <fstream>
#include <iostream>
@ -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)) {