Remove the custom mangler. We should use the one in the cling::utils.

This commit is contained in:
Vassil Vassilev 2013-10-24 12:00:58 -05:00 committed by sftnight
parent 7005030ed6
commit 25d67e7461

View File

@ -6,12 +6,12 @@
#include "ASTNodeEraser.h"
#include "cling/Interpreter/Transaction.h"
#include "cling/Utils/AST.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclVisitor.h"
#include "clang/AST/DependentDiagnostic.h"
#include "clang/AST/Mangle.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/FileManager.h"
#include "clang/Sema/Scope.h"
@ -45,12 +45,6 @@ namespace cling {
///
const Transaction* m_CurTransaction;
///\brief The mangler used to get the mangled names of the declarations
/// that we are removing from the module.
///
llvm::OwningPtr<MangleContext> m_Mangler;
///\brief Reverted declaration contains a SourceLocation, representing a
/// place in the file where it was seen. Clang caches that file and even if
/// a declaration is removed and the file is edited we hit the cached entry.
@ -61,9 +55,7 @@ namespace cling {
public:
DeclReverter(Sema* S, llvm::ExecutionEngine* EE, const Transaction* T)
: m_Sema(S), m_EEngine(EE), m_CurTransaction(T) {
m_Mangler.reset(m_Sema->getASTContext().createMangleContext());
}
: m_Sema(S), m_EEngine(EE), m_CurTransaction(T) { }
~DeclReverter();
///\brief Interface with nice name, forwarding to Visit.