mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +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:
@@ -40,6 +40,7 @@
|
||||
#include "llvm/Target/TargetLowering.h"
|
||||
#include "llvm/Target/TargetLoweringObjectFile.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
#include "llvm/Transforms/Utils/GlobalStatus.h"
|
||||
#include <system_error>
|
||||
using namespace llvm;
|
||||
@@ -146,7 +147,7 @@ LTOModule *LTOModule::makeLTOModule(std::unique_ptr<MemoryBuffer> Buffer,
|
||||
TargetMachine *target = march->createTargetMachine(TripleStr, CPU, FeatureStr,
|
||||
options);
|
||||
M->materializeAllPermanently(true);
|
||||
M->setDataLayout(target->getDataLayout());
|
||||
M->setDataLayout(target->getSubtargetImpl()->getDataLayout());
|
||||
|
||||
std::unique_ptr<object::IRObjectFile> IRObj(
|
||||
new object::IRObjectFile(std::move(Buffer), std::move(M)));
|
||||
@@ -574,8 +575,10 @@ void LTOModule::parseMetadata() {
|
||||
MDString *MDOption = cast<MDString>(MDOptions->getOperand(ii));
|
||||
StringRef Op = _linkeropt_strings.
|
||||
GetOrCreateValue(MDOption->getString()).getKey();
|
||||
StringRef DepLibName = _target->getTargetLowering()->
|
||||
getObjFileLowering().getDepLibFromLinkerOpt(Op);
|
||||
StringRef DepLibName = _target->getSubtargetImpl()
|
||||
->getTargetLowering()
|
||||
->getObjFileLowering()
|
||||
.getDepLibFromLinkerOpt(Op);
|
||||
if (!DepLibName.empty())
|
||||
_deplibs.push_back(DepLibName.data());
|
||||
else if (!Op.empty())
|
||||
|
||||
Reference in New Issue
Block a user