diff options
| author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-07-19 16:51:51 +0000 |
|---|---|---|
| committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-07-19 16:51:51 +0000 |
| commit | 5c92b9ab4e4dce3233ea3e400a02c443f9afd372 (patch) | |
| tree | 14fe3610150372c078479b9bf92d9558362f289e /lib/Basic/Targets.cpp | |
| parent | 0e373ecd52d595ebfc3054efdbacd7e6815bcd1e (diff) | |
| download | clang-5c92b9ab4e4dce3233ea3e400a02c443f9afd372.tar.gz clang-5c92b9ab4e4dce3233ea3e400a02c443f9afd372.tar.bz2 clang-5c92b9ab4e4dce3233ea3e400a02c443f9afd372.tar.xz | |
[SystemZ] Add -march= command-line option
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
| -rw-r--r-- | lib/Basic/Targets.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index d2781f56d5..c236924c2d 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -4396,6 +4396,17 @@ namespace { virtual BuiltinVaListKind getBuiltinVaListKind() const { return TargetInfo::SystemZBuiltinVaList; } + virtual bool setCPU(const std::string &Name) { + bool CPUKnown = llvm::StringSwitch<bool>(Name) + .Case("z10", true) + .Case("z196", true) + .Case("zEC12", true) + .Default(false); + + // No need to store the CPU yet. There aren't any CPU-specific + // macros to define. + return CPUKnown; + } }; const char *const SystemZTargetInfo::GCCRegNames[] = { |
