aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-01-27 00:37:08 +0000
committerJim Grosbach <grosbach@apple.com>2012-01-27 00:37:08 +0000
commitebd4c05c3cbd61215366d4d16f1c1a2e57e7156d (patch)
tree97d9f1a971c21688223b77711c5541748ae0c7f6 /tools
parent3b0714d993a37c722603f7cbfab71848a99e91cd (diff)
downloadexternal_llvm-ebd4c05c3cbd61215366d4d16f1c1a2e57e7156d.zip
external_llvm-ebd4c05c3cbd61215366d4d16f1c1a2e57e7156d.tar.gz
external_llvm-ebd4c05c3cbd61215366d4d16f1c1a2e57e7156d.tar.bz2
Better diagnostic for malformed .org assembly directive.
Provide source line number information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/lto/LTOModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp
index 2b89e62..af5a0a6 100644
--- a/tools/lto/LTOModule.cpp
+++ b/tools/lto/LTOModule.cpp
@@ -589,8 +589,8 @@ namespace {
unsigned MaxBytesToEmit) {}
virtual void EmitCodeAlignment(unsigned ByteAlignment,
unsigned MaxBytesToEmit) {}
- virtual void EmitValueToOffset(const MCExpr *Offset,
- unsigned char Value ) {}
+ virtual bool EmitValueToOffset(const MCExpr *Offset,
+ unsigned char Value ) { return false; }
virtual void EmitFileDirective(StringRef Filename) {}
virtual void EmitDwarfAdvanceLineAddr(int64_t LineDelta,
const MCSymbol *LastLabel,