aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-06 17:24:26 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-06 17:24:26 +0000
commitb96cb6082784fcf58349fa37e8d4a7cd2030c9cb (patch)
tree23dc6cdff26b84da9b6e2d4077f5903b21215b42 /utils
parent6591c8938c806b516c40ef7849fc73674dff549a (diff)
downloadexternal_llvm-b96cb6082784fcf58349fa37e8d4a7cd2030c9cb.zip
external_llvm-b96cb6082784fcf58349fa37e8d4a7cd2030c9cb.tar.gz
external_llvm-b96cb6082784fcf58349fa37e8d4a7cd2030c9cb.tar.bz2
Return const char* instead of std::string in Tool classes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/LLVMCCConfigurationEmitter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/TableGen/LLVMCCConfigurationEmitter.cpp b/utils/TableGen/LLVMCCConfigurationEmitter.cpp
index 48008f1..fe8e506 100644
--- a/utils/TableGen/LLVMCCConfigurationEmitter.cpp
+++ b/utils/TableGen/LLVMCCConfigurationEmitter.cpp
@@ -742,25 +742,25 @@ void EmitIsLastMethod (const ToolProperties& P, std::ostream& O) {
// Emit static [Input,Output]Language() methods for Tool classes
void EmitInOutLanguageMethods (const ToolProperties& P, std::ostream& O) {
- O << Indent1 << "std::string InputLanguage() const {\n"
+ O << Indent1 << "const char* InputLanguage() const {\n"
<< Indent2 << "return \"" << P.InLanguage << "\";\n"
<< Indent1 << "}\n\n";
- O << Indent1 << "std::string OutputLanguage() const {\n"
+ O << Indent1 << "const char* OutputLanguage() const {\n"
<< Indent2 << "return \"" << P.OutLanguage << "\";\n"
<< Indent1 << "}\n\n";
}
// Emit static [Input,Output]Language() methods for Tool classes
void EmitOutputSuffixMethod (const ToolProperties& P, std::ostream& O) {
- O << Indent1 << "std::string OutputSuffix() const {\n"
+ O << Indent1 << "const char* OutputSuffix() const {\n"
<< Indent2 << "return \"" << P.OutputSuffix << "\";\n"
<< Indent1 << "}\n\n";
}
// Emit static Name() method for Tool classes
void EmitNameMethod (const ToolProperties& P, std::ostream& O) {
- O << Indent1 << "std::string Name() const {\n"
+ O << Indent1 << "const char* Name() const {\n"
<< Indent2 << "return \"" << P.Name << "\";\n"
<< Indent1 << "}\n\n";
}