aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-01-26 23:20:15 +0000
committerJim Grosbach <grosbach@apple.com>2012-01-26 23:20:15 +0000
commit42e6bd38e02e2e1c2cc50d2f12036c38c4ea3ab0 (patch)
treebcc469d69ee4ce40651aacb349101a37d88d5cbf /lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parent82f4ce5081fc9cfbf34bbe61eb0412e7ca4dc3df (diff)
Keep source information, if available, around for ARM Fixups.
Adjust an example MachObjectWriter diagnostic to use the information to issue a better message. Before: LLVM ERROR: unknown ARM fixup kind! After: x.s:6:5: error: unsupported relocation on symbol beq bar ^ rdar://9800182 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--lib/Target/ARM/AsmParser/ARMAsmParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index bdaf09b16c..b51c59df9f 100644
--- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -7157,6 +7157,7 @@ MatchAndEmitInstruction(SMLoc IDLoc,
if (Inst.getOpcode() == ARM::ITasm)
return false;
+ Inst.setLoc(IDLoc);
Out.EmitInstruction(Inst);
return false;
case Match_MissingFeature: