diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCAssembler.cpp | 8 | ||||
-rw-r--r-- | lib/MC/MCContext.cpp | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 9efdfe359b..9388df8df6 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -557,6 +557,10 @@ public: ie = Asm.symbol_end(); it != ie; ++it) { MCSymbol &Symbol = it->getSymbol(); + // Ignore assembler temporaries. + if (it->getSymbol().isTemporary()) + continue; + if (!it->isExternal() && !Symbol.isUndefined()) continue; @@ -589,6 +593,10 @@ public: ie = Asm.symbol_end(); it != ie; ++it) { MCSymbol &Symbol = it->getSymbol(); + // Ignore assembler temporaries. + if (it->getSymbol().isTemporary()) + continue; + if (it->isExternal() || Symbol.isUndefined()) continue; diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 5a3e7f661e..f36564a6af 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -38,7 +38,6 @@ MCSymbol *MCContext::GetOrCreateSymbol(const StringRef &Name) { return Entry = new (*this) MCSymbol(Name, false); } - MCSymbol *MCContext::CreateTemporarySymbol(const StringRef &Name) { // If unnamed, just create a symbol. if (Name.empty()) |