diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-05-20 23:08:04 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-05-20 23:08:04 +0000 |
commit | 2632f0df48af2c3bb703f8edaab1367a4416a70d (patch) | |
tree | 7010c6d786da8d1efd9e9bc963e1254881de15af /llvm/lib/MC | |
parent | a05c082866dd9376407c43bb85517975f55652c4 (diff) | |
download | bcm5719-llvm-2632f0df48af2c3bb703f8edaab1367a4416a70d.tar.gz bcm5719-llvm-2632f0df48af2c3bb703f8edaab1367a4416a70d.zip |
[WinEH] Store pointers to the LSDA in the exception registration object
We aren't yet emitting the LSDA yet, so this will still fail to
assemble.
llvm-svn: 237852
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/MCContext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 0d43c262bad..0a13c9e6edb 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -144,6 +144,11 @@ MCSymbol *MCContext::getOrCreateParentFrameOffsetSymbol(StringRef FuncName) { "$parent_frame_offset"); } +MCSymbol *MCContext::getOrCreateLSDASymbol(StringRef FuncName) { + return getOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) + "__ehtable$" + + FuncName); +} + MCSymbol *MCContext::CreateSymbol(StringRef Name, bool AlwaysAddSuffix) { // Determine whether this is an assembler temporary or normal label, if used. bool IsTemporary = false; |