diff options
author | Eric Christopher <echristo@gmail.com> | 2015-01-26 17:33:30 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-01-26 17:33:30 +0000 |
commit | 5da54492f13f4263eeb4323f4c7baaaa11807519 (patch) | |
tree | 560082101b7baf517f085d04c8fa18a4a016fabe /include | |
parent | 8e438825721eb3924bef6c5cda78b7b93a544f01 (diff) |
Store the passed in CPU name string so that it can be accessed later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCSubtargetInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSubtargetInfo.h b/include/llvm/MC/MCSubtargetInfo.h index 3f38bd59a57..3984a1fb21b 100644 --- a/include/llvm/MC/MCSubtargetInfo.h +++ b/include/llvm/MC/MCSubtargetInfo.h @@ -28,6 +28,7 @@ class StringRef; /// class MCSubtargetInfo { std::string TargetTriple; // Target triple + std::string CPU; // CPU being targeted. ArrayRef<SubtargetFeatureKV> ProcFeatures; // Processor feature list ArrayRef<SubtargetFeatureKV> ProcDesc; // Processor descriptions @@ -59,6 +60,11 @@ public: return TargetTriple; } + /// getCPU - Return the CPU string. + StringRef getCPU() const { + return CPU; + } + /// getFeatureBits - Return the feature bits. /// uint64_t getFeatureBits() const { |