mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
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:
parent
f9545d0a73
commit
292a1afb4a
@ -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>
|
||||
@ -238,6 +239,9 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
}
|
||||
|
||||
// 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)) {
|
||||
std::cerr << argv[0] << ": target '" << Target.getName()
|
||||
|
Loading…
x
Reference in New Issue
Block a user