summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ExpressionSourceCode.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-07-03 00:07:54 +0000
committerGreg Clayton <gclayton@apple.com>2013-07-03 00:07:54 +0000
commitddf976aa8bdd347c9f45c1981cf63c42d07368d2 (patch)
treef3b1824fd449e7b7aa68a7622e31907846bdcf94 /lldb/source/Expression/ExpressionSourceCode.cpp
parent10413a46a0d8abe7d6a14e99ce582dac0ad069e8 (diff)
downloadbcm5719-llvm-ddf976aa8bdd347c9f45c1981cf63c42d07368d2.tar.gz
bcm5719-llvm-ddf976aa8bdd347c9f45c1981cf63c42d07368d2.zip
Import the builtin type prefix before we import the user expression prefix so that the user expression prefix can use the uint, int, size_t, and other types without having to define them.
llvm-svn: 185488
Diffstat (limited to 'lldb/source/Expression/ExpressionSourceCode.cpp')
-rw-r--r--lldb/source/Expression/ExpressionSourceCode.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Expression/ExpressionSourceCode.cpp b/lldb/source/Expression/ExpressionSourceCode.cpp
index 0c6683189ea..aef3b9e301e 100644
--- a/lldb/source/Expression/ExpressionSourceCode.cpp
+++ b/lldb/source/Expression/ExpressionSourceCode.cpp
@@ -70,8 +70,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
"{ \n"
" %s; \n"
"} \n",
- m_prefix.c_str(),
g_expression_prefix,
+ m_prefix.c_str(),
m_name.c_str(),
m_body.c_str());
break;
@@ -83,8 +83,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
"{ \n"
" %s; \n"
"} \n",
- m_prefix.c_str(),
g_expression_prefix,
+ m_prefix.c_str(),
m_name.c_str(),
(const_object ? "const" : ""),
m_body.c_str());
@@ -103,8 +103,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
" %s; \n"
"} \n"
"@end \n",
- m_prefix.c_str(),
g_expression_prefix,
+ m_prefix.c_str(),
m_name.c_str(),
m_name.c_str(),
m_body.c_str());
@@ -122,8 +122,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
" %s; \n"
"} \n"
"@end \n",
- m_prefix.c_str(),
g_expression_prefix,
+ m_prefix.c_str(),
m_name.c_str(),
m_name.c_str(),
m_body.c_str());
OpenPOWER on IntegriCloud