mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 05:40:30 +01:00
gallivm: Avoid llvm::sys::getProcessTriple().
Just use LLVM_HOST_TRIPLE, which is available at least from LLVM 3.3 onwards, and is pretty much what llvm::sys::getProcessTriple() does anyway, Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
b5ca689cee
commit
932b71f17d
1 changed files with 3 additions and 3 deletions
|
|
@ -109,13 +109,13 @@ disassemble(const void* func, std::ostream &buffer)
|
|||
* Initialize all used objects.
|
||||
*/
|
||||
|
||||
std::string Triple = llvm::sys::getProcessTriple();
|
||||
LLVMDisasmContextRef D = LLVMCreateDisasm(Triple.c_str(), NULL, 0, NULL, NULL);
|
||||
const char *triple = LLVM_HOST_TRIPLE;
|
||||
LLVMDisasmContextRef D = LLVMCreateDisasm(triple, NULL, 0, NULL, NULL);
|
||||
char outline[1024];
|
||||
|
||||
if (!D) {
|
||||
buffer << "error: could not create disassembler for triple "
|
||||
<< Triple.c_str() << '\n';
|
||||
<< triple << '\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue