Adapt to upstream global.params.* -> target.* shuffling

This commit is contained in:
Martin Kinkelin 2021-05-28 15:18:06 +02:00
parent bfa3cead08
commit 1e00f63045
14 changed files with 71 additions and 72 deletions

View file

@ -954,7 +954,7 @@ bool eraseDummyAfterReturnBB(llvm::BasicBlock *bb) {
* to be found.
*/
void emulateWeakAnyLinkageForMSVC(LLFunction *func, LINK linkage) {
const bool isWin32 = !global.params.is64bit;
const bool isWin32 = global.params.targetTriple->isArch32Bit();
std::string mangleBuffer;
llvm::StringRef finalMangle = func->getName();