Remove unused members of MetaProcessor in Release.

This commit is contained in:
Frederich Munch 2016-12-07 01:49:22 -05:00 committed by sftnight
parent b7bdd91739
commit 9becb2a25c
2 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,7 @@ namespace cling {
///
std::unique_ptr<MetaParser> m_MetaParser;
#ifndef NDEBUG
///\brief Currently executing file as passed into executeFile
///
llvm::StringRef m_CurrentlyExecutingFile;
@ -52,6 +53,7 @@ namespace cling {
///\brief Outermost currently executing file as passed into executeFile
///
llvm::StringRef m_TopExecutingFile;
#endif
///\brief The output stream being used for various purposes.
///

View File

@ -295,10 +295,13 @@ namespace cling {
} // find '}'
} // ignore outermost block
#ifndef NDEBUG
m_CurrentlyExecutingFile = filename;
bool topmost = !m_TopExecutingFile.data();
if (topmost)
m_TopExecutingFile = m_CurrentlyExecutingFile;
#endif
Interpreter::CompilationResult ret;
// We don't want to value print the results of a unnamed macro.
content = "#line 2 \"" + filename.str() + "\" \n" + content;
@ -310,9 +313,12 @@ namespace cling {
<< " is incomplete (missing parenthesis or similar)!\n";
ret = Interpreter::kFailure;
}
#ifndef NDEBUG
m_CurrentlyExecutingFile = llvm::StringRef();
if (topmost)
m_TopExecutingFile = llvm::StringRef();
#endif
return ret;
}