diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-07-01 01:07:12 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-07-01 01:07:12 +0000 |
| commit | 2374a7cba8ea820f27c05e3f7f8f7f98d27c650d (patch) | |
| tree | e29178bbf47f00abe7ccc928ae26d7341b0731a7 /clang/lib/CodeGen/CGCall.cpp | |
| parent | bdff219439efcdb157962498e5eeaecb77ed65a7 (diff) | |
| download | bcm5719-llvm-2374a7cba8ea820f27c05e3f7f8f7f98d27c650d.tar.gz bcm5719-llvm-2374a7cba8ea820f27c05e3f7f8f7f98d27c650d.zip | |
Use a stable sort to guarantee target feature ordering in the IR
in order to make testing somewhat more feasible. Has the advantage
of making it easier to find target features as well.
llvm-svn: 241134
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 245b8274a90..fd20bf15e0d 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -1544,6 +1544,7 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI, if (TargetCPU != "") FuncAttrs.addAttribute("target-cpu", TargetCPU); if (!Features.empty()) { + std::stable_sort(Features.begin(), Features.end()); std::stringstream TargetFeatures; std::copy(Features.begin(), Features.end(), std::ostream_iterator<std::string>(TargetFeatures, ",")); |

