Skip to content

Commit c525b8e

Browse files
author
Wael Yehia
committed
[AIX] Use llvm::get_threadid() to get a numeric ID
This should hopefully fix the Mac build break. Differential Revision: https://reviews.llvm.org/D159319
1 parent d344030 commit c525b8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
#include "llvm/Support/ErrorHandling.h"
6969
#include "llvm/Support/Process.h"
7070
#include "llvm/Support/raw_ostream.h"
71-
#include "llvm/Support/thread.h"
71+
#include "llvm/Support/Threading.h"
7272
#include "llvm/Target/TargetMachine.h"
7373
#include "llvm/TargetParser/Triple.h"
7474
#include "llvm/Transforms/Utils/ModuleUtils.h"
@@ -2750,7 +2750,7 @@ bool PPCAIXAsmPrinter::doInitialization(Module &M) {
27502750
.count();
27512751
FormatIndicatorAndUniqueModId =
27522752
"clangPidTidTime_" + llvm::itostr(sys::Process::getProcessId()) +
2753-
"_" + llvm::itostr((int64_t)llvm::this_thread::get_id()) + "_" +
2753+
"_" + llvm::itostr(llvm::get_threadid()) + "_" +
27542754
llvm::itostr(CurTime);
27552755
}
27562756
}

0 commit comments

Comments
 (0)