[TargetRegistry] Accept Triple in createTargetMachine() (NFC) (#130940)
This avoids doing a Triple -> std::string -> Triple round trip in lots of places, now that the Module stores a Triple.
This commit is contained in:
@@ -143,7 +143,7 @@ void dumpFunction(const BinaryFunction &BF) {
|
||||
std::move(MCEInstance.MCE), std::move(MAB)));
|
||||
AsmStreamer->initSections(true, *BC.STI);
|
||||
std::unique_ptr<TargetMachine> TM(BC.TheTarget->createTargetMachine(
|
||||
BC.TripleName, "", "", TargetOptions(), std::nullopt));
|
||||
*BC.TheTriple, "", "", TargetOptions(), std::nullopt));
|
||||
std::unique_ptr<AsmPrinter> MAP(
|
||||
BC.TheTarget->createAsmPrinter(*TM, std::move(AsmStreamer)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user