aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/SubtargetFeature.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-23 19:50:50 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-23 19:50:50 +0000
commit7357d8f48490c42cf6237c3a8f982a36258248db (patch)
tree84e4c7c067cf7671696a466e471ce202604ffb81 /include/llvm/Target/SubtargetFeature.h
parentdc3e36dd1f8485f55a28fac99fa23a5bfb011e61 (diff)
downloadexternal_llvm-7357d8f48490c42cf6237c3a8f982a36258248db.zip
external_llvm-7357d8f48490c42cf6237c3a8f982a36258248db.tar.gz
external_llvm-7357d8f48490c42cf6237c3a8f982a36258248db.tar.bz2
Propagate CPU string out of SubtargetFeatures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/SubtargetFeature.h')
-rw-r--r--include/llvm/Target/SubtargetFeature.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Target/SubtargetFeature.h b/include/llvm/Target/SubtargetFeature.h
index d187daa..5cfdc02 100644
--- a/include/llvm/Target/SubtargetFeature.h
+++ b/include/llvm/Target/SubtargetFeature.h
@@ -82,10 +82,13 @@ public:
/// Set the CPU string. Replaces previous setting. Setting to "" clears CPU.
void setCPU(const std::string &String);
-
+
/// Setting CPU string only if no string is set.
void setCPUIfNone(const std::string &String);
-
+
+ /// Returns current CPU string.
+ const std::string & getCPU() const;
+
/// Adding Features.
void AddFeature(const std::string &String, bool IsEnabled = true);