From a3ab3841c0cce9c4747fae96ef25e5695fc1f856 Mon Sep 17 00:00:00 2001 From: Pete Cooper Date: Mon, 8 Jun 2015 17:17:09 +0000 Subject: Change MCSymbol IsELF to an enum to support future MCSymbolCOFF and MCSymbolMachO. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed by Rafael EspĂ­ndola. llvm-svn: 239311 --- llvm/lib/MC/MCContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/MC/MCContext.cpp') diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 79f9bdae463..b44cbc0f85b 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -162,7 +162,7 @@ MCSymbol *MCContext::createSymbolImpl(const StringMapEntry *Name, bool IsELF = MOFI && MOFI->getObjectFileType() == MCObjectFileInfo::IsELF; if (IsELF) return new (*this) MCSymbolELF(Name, IsTemporary); - return new (*this) MCSymbol(false, Name, IsTemporary); + return new (*this) MCSymbol(MCSymbol::SymbolKindUnset, Name, IsTemporary); } MCSymbol *MCContext::createSymbol(StringRef Name, bool AlwaysAddSuffix, -- cgit v1.2.3