diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-09-14 03:02:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-09-14 03:02:37 +0000 |
| commit | a835afd084f0e1c9ce65902b24eac79921547c79 (patch) | |
| tree | ec0c825951d3cdd2acfad8d4701eb20771d5a6b9 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
| parent | c2eadb171aaa638fa18a7f8ddcb4e9bc22a0fad8 (diff) | |
| download | external_llvm-a835afd084f0e1c9ce65902b24eac79921547c79.zip external_llvm-a835afd084f0e1c9ce65902b24eac79921547c79.tar.gz external_llvm-a835afd084f0e1c9ce65902b24eac79921547c79.tar.bz2 | |
Change MCAsmStreamer to take an MCInstPrinter instead of a
full AsmPrinter, and change TargetRegistry to keep track
of registered MCInstPrinters.
llvm-mc is still linking in the entire
target foo to get the code emitter stuff, but this is an
important step in the right direction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index fca4b80..6249cda 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -56,7 +56,8 @@ AsmPrinter::AsmPrinter(formatted_raw_ostream &o, TargetMachine &tm, TM(tm), MAI(T), TRI(tm.getRegisterInfo()), OutContext(*new MCContext()), - OutStreamer(*createAsmStreamer(OutContext, O, *T, this)), + // FIXME: Pass instprinter to streamer. + OutStreamer(*createAsmStreamer(OutContext, O, *T, 0)), LastMI(0), LastFn(0), Counter(~0U), PrevDLT(0, ~0U, ~0U) { |
