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
This commit is contained in:
Greg Clayton 2013-07-03 00:07:54 +00:00
parent 10413a46a0
commit ddf976aa8b
1 changed files with 4 additions and 4 deletions

View File

@ -70,8 +70,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
"{ \n" "{ \n"
" %s; \n" " %s; \n"
"} \n", "} \n",
m_prefix.c_str(),
g_expression_prefix, g_expression_prefix,
m_prefix.c_str(),
m_name.c_str(), m_name.c_str(),
m_body.c_str()); m_body.c_str());
break; break;
@ -83,8 +83,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
"{ \n" "{ \n"
" %s; \n" " %s; \n"
"} \n", "} \n",
m_prefix.c_str(),
g_expression_prefix, g_expression_prefix,
m_prefix.c_str(),
m_name.c_str(), m_name.c_str(),
(const_object ? "const" : ""), (const_object ? "const" : ""),
m_body.c_str()); m_body.c_str());
@ -103,8 +103,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
" %s; \n" " %s; \n"
"} \n" "} \n"
"@end \n", "@end \n",
m_prefix.c_str(),
g_expression_prefix, g_expression_prefix,
m_prefix.c_str(),
m_name.c_str(), m_name.c_str(),
m_name.c_str(), m_name.c_str(),
m_body.c_str()); m_body.c_str());
@ -122,8 +122,8 @@ bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrappi
" %s; \n" " %s; \n"
"} \n" "} \n"
"@end \n", "@end \n",
m_prefix.c_str(),
g_expression_prefix, g_expression_prefix,
m_prefix.c_str(),
m_name.c_str(), m_name.c_str(),
m_name.c_str(), m_name.c_str(),
m_body.c_str()); m_body.c_str());