aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCAsmStreamer.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-04-29 18:00:54 +0000
committerDevang Patel <dpatel@apple.com>2011-04-29 18:00:54 +0000
commit49a3ff9d1733cb16bdc97590e5b90508b8656565 (patch)
tree2b6fdc12f7c41595567afbd5150b53dc5aa37b75 /lib/MC/MCAsmStreamer.cpp
parent0eab5c4d85b4c4bb161bcdd959aa58a6f54415cc (diff)
downloadexternal_llvm-49a3ff9d1733cb16bdc97590e5b90508b8656565.zip
external_llvm-49a3ff9d1733cb16bdc97590e5b90508b8656565.tar.gz
external_llvm-49a3ff9d1733cb16bdc97590e5b90508b8656565.tar.bz2
Hoist MCLineEntry construction AsmPrinter so that anyone who derives from AsmPrinter can have line number entries.
PR 9810 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmStreamer.cpp')
-rw-r--r--lib/MC/MCAsmStreamer.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp
index 2f82977..23ddebd 100644
--- a/lib/MC/MCAsmStreamer.cpp
+++ b/lib/MC/MCAsmStreamer.cpp
@@ -957,9 +957,6 @@ void MCAsmStreamer::EmitRegSave(const SmallVectorImpl<unsigned> &RegList,
void MCAsmStreamer::EmitInstruction(const MCInst &Inst) {
assert(getCurrentSection() && "Cannot emit contents before setting section!");
- if (!UseLoc)
- MCLineEntry::Make(this, getCurrentSection());
-
// Show the encoding in a comment if we have a code emitter.
if (Emitter)
AddEncodingComment(Inst);