aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-07 13:34:05 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-07 13:34:05 +0000
commitc697f8b28832a0dcb8b7ceb919b02628050b7730 (patch)
tree7b6ef17ce69ce35cd8042d3d6289504529ba687f
parentcf3e4cb29a5fd485f11354060bb7a99e8cfdaf09 (diff)
downloadexternal_llvm-c697f8b28832a0dcb8b7ceb919b02628050b7730.zip
external_llvm-c697f8b28832a0dcb8b7ceb919b02628050b7730.tar.gz
external_llvm-c697f8b28832a0dcb8b7ceb919b02628050b7730.tar.bz2
Fix the documentation of getDefaultSubtargetFeatures.
Patch by David Nadlinger. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192098 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/MC/SubtargetFeature.h3
-rw-r--r--lib/MC/SubtargetFeature.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/MC/SubtargetFeature.h b/include/llvm/MC/SubtargetFeature.h
index 8862c8b..acebf99 100644
--- a/include/llvm/MC/SubtargetFeature.h
+++ b/include/llvm/MC/SubtargetFeature.h
@@ -99,8 +99,7 @@ public:
// Dump feature info.
void dump() const;
- /// Retrieve a formatted string of the default features for the specified
- /// target triple.
+ /// Adds the default features for the specified target triple.
void getDefaultSubtargetFeatures(const Triple& Triple);
};
diff --git a/lib/MC/SubtargetFeature.cpp b/lib/MC/SubtargetFeature.cpp
index 7625abd..68d68ff 100644
--- a/lib/MC/SubtargetFeature.cpp
+++ b/lib/MC/SubtargetFeature.cpp
@@ -353,8 +353,7 @@ void SubtargetFeatures::dump() const {
}
#endif
-/// getDefaultSubtargetFeatures - Return a string listing the features
-/// associated with the target triple.
+/// Adds the default features for the specified target triple.
///
/// FIXME: This is an inelegant way of specifying the features of a
/// subtarget. It would be better if we could encode this information