summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2015-11-13 13:11:07 -0500
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2015-11-13 13:11:07 -0500
commit3097827046a90131522fd90fcd7745261432efeb (patch)
tree5af326c6cc6eef0fe3e67a4356ac6e991018c94c /tools
parent988efc5bdb38ef14637ed7dfdd96d329c5d2ed57 (diff)
[SPIRV] Fix translation of group pipe functions. work_ and sub_ prefix are not in the translated builtin function name.
Fix generator enum name. Fix mem leak when mangling opaque type names. Should not use new in StringSwitch Case since it is always executed even the case fails. Bump up version to 2.
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-spirv/llvm-spirv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-spirv/llvm-spirv.cpp b/tools/llvm-spirv/llvm-spirv.cpp
index 0c19d83..c6c597b 100644
--- a/tools/llvm-spirv/llvm-spirv.cpp
+++ b/tools/llvm-spirv/llvm-spirv.cpp
@@ -280,11 +280,11 @@ regularizeLLVM() {
int
main(int ac, char** av) {
- cl::ParseCommandLineOptions(ac, av, "LLVM/SPIR-V translator");
-#ifndef NDEBUG
EnablePrettyStackTrace();
sys::PrintStackTraceOnErrorSignal();
-#endif
+ PrettyStackTraceProgram X(ac, av);
+
+ cl::ParseCommandLineOptions(ac, av, "LLVM/SPIR-V translator");
#ifdef _SPIRV_SUPPORT_TEXT_FMT
if (ToText && (ToBinary || IsReverse || IsRegularization)) {