Add MCSymbolMachO which will be used to hide the MCSymbolMachO flags.

Reviewed by Rafael Espíndola.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239315 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Pete Cooper
2015-06-08 17:17:23 +00:00
parent e25e889c7c
commit cae8bc4504
2 changed files with 27 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbolCOFF.h"
#include "llvm/MC/MCSymbolELF.h"
#include "llvm/MC/MCSymbolMachO.h"
#include "llvm/Support/ELF.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileSystem.h"
@@ -167,7 +168,7 @@ MCSymbol *MCContext::createSymbolImpl(const StringMapEntry<bool> *Name,
case MCObjectFileInfo::IsELF:
return new (*this) MCSymbolELF(Name, IsTemporary);
case MCObjectFileInfo::IsMachO:
return new (*this) MCSymbol(MCSymbol::SymbolKindUnset, Name, IsTemporary);
return new (*this) MCSymbolMachO(Name, IsTemporary);
}
}
return new (*this) MCSymbol(MCSymbol::SymbolKindUnset, Name, IsTemporary);