aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2016-04-15 12:05:09 +0100
committerJose Fonseca <[email protected]>2016-04-19 11:31:37 +0100
commit932b71f17d824c53beccaa6bea11d6ad8c3dcdfd (patch)
tree7325e05ea6f07d25217a7a72b71f3820c2f41194 /src/gallium/auxiliary/gallivm
parentb5ca689ceea39dc54ffa47d263dc1a6705702c6e (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index a299c8a86dd..f311fe7f690 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -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;
}