diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2015-11-13 13:11:07 -0500 |
---|---|---|
committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2015-11-13 13:11:07 -0500 |
commit | 3097827046a90131522fd90fcd7745261432efeb (patch) | |
tree | 5af326c6cc6eef0fe3e67a4356ac6e991018c94c /tools | |
parent | 988efc5bdb38ef14637ed7dfdd96d329c5d2ed57 (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.cpp | 6 |
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)) {
|