summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-01-30 21:13:05 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-01-30 21:13:05 +0000
commit4e54e6fe755c54c444687f9d0d2e657982aa8e1c (patch)
tree1fde9914c79b1d342c6abd905c4daf43e2d50a3b /include
parent6420c1109328813ddd6eec03c510ac7ae46249fb (diff)
downloadllvm-4e54e6fe755c54c444687f9d0d2e657982aa8e1c.tar.gz
llvm-4e54e6fe755c54c444687f9d0d2e657982aa8e1c.tar.bz2
llvm-4e54e6fe755c54c444687f9d0d2e657982aa8e1c.tar.xz
Fix PR18381 - print a minimal diagnostic rather than assert on unresolved .secidx target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAssembler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index e1cf66d3f9..0d12a5d5c8 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -1153,6 +1153,10 @@ public:
return *Entry;
}
+ bool hasSymbolData(const MCSymbol &Symbol) const {
+ return SymbolMap.lookup(&Symbol) != 0;
+ }
+
MCSymbolData &getSymbolData(const MCSymbol &Symbol) const {
MCSymbolData *Entry = SymbolMap.lookup(&Symbol);
assert(Entry && "Missing symbol data!");