Use a bit better (more descriptive) name.
This commit is contained in:
parent
4a62769b38
commit
ca5db8bcce
@ -7,7 +7,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#include "ReturnSynthesizer.h"
|
||||
#include "ValueExtractionSynthesizer.h"
|
||||
|
||||
#include "cling/Interpreter/Transaction.h"
|
||||
#include "cling/Utils/AST.h"
|
||||
@ -21,13 +21,13 @@
|
||||
using namespace clang;
|
||||
|
||||
namespace cling {
|
||||
ReturnSynthesizer::ReturnSynthesizer(clang::Sema* S)
|
||||
ValueExtractionSynthesizer::ValueExtractionSynthesizer(clang::Sema* S)
|
||||
: TransactionTransformer(S), m_Context(&S->getASTContext()), m_gClingVD(0),
|
||||
m_UnresolvedNoAlloc(0), m_UnresolvedWithAlloc(0),
|
||||
m_UnresolvedCopyArray(0) { }
|
||||
|
||||
// pin the vtable here.
|
||||
ReturnSynthesizer::~ReturnSynthesizer()
|
||||
ValueExtractionSynthesizer::~ValueExtractionSynthesizer()
|
||||
{ }
|
||||
|
||||
namespace {
|
||||
@ -51,7 +51,7 @@ namespace cling {
|
||||
};
|
||||
}
|
||||
|
||||
void ReturnSynthesizer::Transform() {
|
||||
void ValueExtractionSynthesizer::Transform() {
|
||||
if (!getTransaction()->getCompilationOpts().ResultEvaluation)
|
||||
return;
|
||||
|
||||
@ -164,7 +164,7 @@ namespace cling {
|
||||
}
|
||||
}
|
||||
|
||||
Expr* ReturnSynthesizer::SynthesizeSVRInit(Expr* E) const {
|
||||
Expr* ValueExtractionSynthesizer::SynthesizeSVRInit(Expr* E) const {
|
||||
// Build a reference to gCling
|
||||
ExprResult gClingDRE
|
||||
= m_Sema->BuildDeclRefExpr(m_gClingVD, m_Context->VoidPtrTy,
|
||||
@ -284,7 +284,7 @@ namespace cling {
|
||||
return Call.take();
|
||||
}
|
||||
|
||||
void ReturnSynthesizer::FindAndCacheRuntimeDecls() {
|
||||
void ValueExtractionSynthesizer::FindAndCacheRuntimeDecls() {
|
||||
assert(!m_gClingVD && "Called multiple times!?");
|
||||
NamespaceDecl* NSD = utils::Lookup::Namespace(m_Sema, "cling");
|
||||
NSD = utils::Lookup::Namespace(m_Sema, "runtime", NSD);
|
@ -7,8 +7,8 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#ifndef CLING_RETURN_SYNTHESIZER_H
|
||||
#define CLING_RETURN_SYNTHESIZER_H
|
||||
#ifndef CLING_VALUE_EXTRACTION_SYNTHESIZER_H
|
||||
#define CLING_VALUE_EXTRACTION_SYNTHESIZER_H
|
||||
|
||||
#include "TransactionTransformer.h"
|
||||
|
||||
@ -21,7 +21,7 @@ namespace clang {
|
||||
|
||||
namespace cling {
|
||||
|
||||
class ReturnSynthesizer : public TransactionTransformer {
|
||||
class ValueExtractionSynthesizer : public TransactionTransformer {
|
||||
|
||||
private:
|
||||
///\brief Needed for the AST transformations, owned by Sema.
|
||||
@ -49,9 +49,9 @@ public:
|
||||
///
|
||||
///\param[in] S - The semantic analysis object.
|
||||
///
|
||||
ReturnSynthesizer(clang::Sema* S);
|
||||
ValueExtractionSynthesizer(clang::Sema* S);
|
||||
|
||||
virtual ~ReturnSynthesizer();
|
||||
virtual ~ValueExtractionSynthesizer();
|
||||
|
||||
virtual void Transform();
|
||||
|
||||
@ -90,4 +90,4 @@ public:
|
||||
|
||||
} // namespace cling
|
||||
|
||||
#endif // CLING_RETURN_SYNTHESIZER_H
|
||||
#endif // CLING_VALUE_EXTRACTION_SYNTHESIZER_H
|
Loading…
x
Reference in New Issue
Block a user