mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Remove the TargetMachine forwards for TargetSubtargetInfo based
information and update all callers. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Target/TargetLowering.h"
|
||||
#include "llvm/Target/TargetLoweringObjectFile.h"
|
||||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -183,7 +184,7 @@ void TargetMachine::getNameWithPrefix(SmallVectorImpl<char> &Name,
|
||||
}
|
||||
SectionKind GVKind = TargetLoweringObjectFile::getKindForGlobal(GV, *this);
|
||||
const TargetLoweringObjectFile &TLOF =
|
||||
getTargetLowering()->getObjFileLowering();
|
||||
getSubtargetImpl()->getTargetLowering()->getObjFileLowering();
|
||||
const MCSection *TheSection = TLOF.SectionForGlobal(GV, GVKind, Mang, *this);
|
||||
bool CannotUsePrivateLabel = TLOF.isSectionAtomizableBySymbols(*TheSection);
|
||||
Mang.getNameWithPrefix(Name, GV, CannotUsePrivateLabel);
|
||||
@@ -193,6 +194,6 @@ MCSymbol *TargetMachine::getSymbol(const GlobalValue *GV, Mangler &Mang) const {
|
||||
SmallString<60> NameStr;
|
||||
getNameWithPrefix(NameStr, GV, Mang);
|
||||
const TargetLoweringObjectFile &TLOF =
|
||||
getTargetLowering()->getObjFileLowering();
|
||||
getSubtargetImpl()->getTargetLowering()->getObjFileLowering();
|
||||
return TLOF.getContext().GetOrCreateSymbol(NameStr.str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user