summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-07-29 22:43:06 +0000
committerDavid Greene <greened@obbligato.org>2011-07-29 22:43:06 +0000
commitaf8ee2cdeeb2ed35fdf0db8f7c06254c5d333ac4 (patch)
tree44b1e44fca997d90227f276acddbc885ef01724b /llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp
parent5b442374e94a066aa0d9e8c606e612c990842a7d (diff)
downloadbcm5719-llvm-af8ee2cdeeb2ed35fdf0db8f7c06254c5d333ac4.tar.gz
bcm5719-llvm-af8ee2cdeeb2ed35fdf0db8f7c06254c5d333ac4.zip
Unconstify Inits
Remove const qualifiers from Init references, per Chris' request. llvm-svn: 136531
Diffstat (limited to 'llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp b/llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp
index 2ef1e8ba341..0a48e75681f 100644
--- a/llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -74,7 +74,7 @@ getCategoryFromDiagGroup(const Record *Group,
static std::string getDiagnosticCategory(const Record *R,
DiagGroupParentMap &DiagGroupParents) {
// If the diagnostic is in a group, and that group has a category, use it.
- if (const DefInit *Group = dynamic_cast<const DefInit*>(R->getValueInit("Group"))) {
+ if (DefInit *Group = dynamic_cast<DefInit*>(R->getValueInit("Group"))) {
// Check the diagnostic's diag group for a category.
std::string CatName = getCategoryFromDiagGroup(Group->getDef(),
DiagGroupParents);
@@ -159,7 +159,7 @@ void ClangDiagsDefsEmitter::run(raw_ostream &OS) {
OS.write_escaped(R.getValueAsString("Text")) << '"';
// Warning associated with the diagnostic.
- if (const DefInit *DI = dynamic_cast<const DefInit*>(R.getValueInit("Group"))) {
+ if (DefInit *DI = dynamic_cast<DefInit*>(R.getValueInit("Group"))) {
OS << ", \"";
OS.write_escaped(DI->getDef()->getValueAsString("GroupName")) << '"';
} else {
@@ -225,7 +225,7 @@ void ClangDiagGroupsEmitter::run(raw_ostream &OS) {
Records.getAllDerivedDefinitions("Diagnostic");
for (unsigned i = 0, e = Diags.size(); i != e; ++i) {
const Record *R = Diags[i];
- const DefInit *DI = dynamic_cast<const DefInit*>(R->getValueInit("Group"));
+ DefInit *DI = dynamic_cast<DefInit*>(R->getValueInit("Group"));
if (DI == 0) continue;
std::string GroupName = DI->getDef()->getValueAsString("GroupName");
DiagsInGroup[GroupName].DiagsInGroup.push_back(R);
OpenPOWER on IntegriCloud