diff options
author | Sam Powell <sam@sampowell.dev> | 2021-06-09 10:29:29 -0700 |
---|---|---|
committer | Cyndy Ishida <cyndy_ishida@apple.com> | 2021-06-09 10:35:41 -0700 |
commit | 20126c9fd4afe2fe11510becccaa769332da302f (patch) | |
tree | c4321264ee655621e3f60e2c83226c37be9ecfe6 /llvm/lib/TextAPI/Target.cpp | |
parent | c8d6e67d53a0d2a462696acc831e990183cd9d0f (diff) | |
download | llvm-20126c9fd4afe2fe11510becccaa769332da302f.zip llvm-20126c9fd4afe2fe11510becccaa769332da302f.tar.gz llvm-20126c9fd4afe2fe11510becccaa769332da302f.tar.bz2 |
Reland "[llvm] llvm-tapi-diff"
This is relanding commit d1d36f7ad2ae82bea8a6fcc40d6c42a72e21f096 .
This patch additionally addresses failures found in buildbots & post review comments.
This patch introduces a new tool, llvm-tapi-diff, that compares and returns the diff of two TBD files.
Reviewed By: ributzka, JDevlieghere
Differential Revision: https://reviews.llvm.org/D101835
Diffstat (limited to 'llvm/lib/TextAPI/Target.cpp')
-rw-r--r-- | llvm/lib/TextAPI/Target.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/TextAPI/Target.cpp b/llvm/lib/TextAPI/Target.cpp index 4c33a58..35fe1bf 100644 --- a/llvm/lib/TextAPI/Target.cpp +++ b/llvm/lib/TextAPI/Target.cpp @@ -72,5 +72,11 @@ ArchitectureSet mapToArchitectureSet(ArrayRef<Target> Targets) { return Result; } +std::string getTargetTripleName(const Target &Targ) { + return (getArchitectureName(Targ.Arch) + "-apple-" + + getOSAndEnvironmentName(Targ.Platform)) + .str(); +} + } // end namespace MachO. } // end namespace llvm. |