diff options
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. |