[cfe-commits] r80744 - in /cfe/trunk/lib/CodeGen: Mangle.cpp Mangle.h
Mike Stump
mrs at apple.com
Tue Sep 1 17:28:47 PDT 2009
Author: mrs
Date: Tue Sep 1 19:28:47 2009
New Revision: 80744
URL: http://llvm.org/viewvc/llvm-project?rev=80744&view=rev
Log:
Shorten name.
Modified:
cfe/trunk/lib/CodeGen/Mangle.cpp
cfe/trunk/lib/CodeGen/Mangle.h
Modified: cfe/trunk/lib/CodeGen/Mangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/Mangle.cpp?rev=80744&r1=80743&r2=80744&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/Mangle.cpp (original)
+++ cfe/trunk/lib/CodeGen/Mangle.cpp Tue Sep 1 19:28:47 2009
@@ -39,8 +39,7 @@
: Context(C), Out(os), Structor(0), StructorType(0) { }
bool mangle(const NamedDecl *D);
- void mangleThunkName(const NamedDecl *ND, bool Virtual, int64_t nv,
- int64_t v);
+ void mangleThunk(const NamedDecl *ND, bool Virtual, int64_t nv, int64_t v);
void mangleGuardVariable(const VarDecl *D);
void mangleCXXVtable(QualType Type);
@@ -238,8 +237,8 @@
mangleNestedName(ND);
}
-void CXXNameMangler::mangleThunkName(const NamedDecl *D, bool Virtual,
- int64_t nv, int64_t v) {
+void CXXNameMangler::mangleThunk(const NamedDecl *D, bool Virtual, int64_t nv,
+ int64_t v) {
// <special-name> ::= T <call-offset> <base encoding>
// # base is the nominal target function of thunk
// <call-offset> ::= h <nv-offset> _
@@ -833,8 +832,8 @@
/// \brief Mangles the a thunk with the offset n for the declaration D and
/// emits that name to the given output stream.
- void mangleThunkName(const NamedDecl *D, bool Virtual, int64_t nv,
- int64_t v, ASTContext &Context, llvm::raw_ostream &os) {
+ void mangleThunk(const NamedDecl *D, bool Virtual, int64_t nv, int64_t v,
+ ASTContext &Context, llvm::raw_ostream &os) {
// FIXME: Hum, we might have to thunk these, fix.
assert(!isa<CXXConstructorDecl>(D) &&
"Use mangleCXXCtor for constructor decls!");
@@ -842,7 +841,7 @@
"Use mangleCXXDtor for destructor decls!");
CXXNameMangler Mangler(Context, os);
- Mangler.mangleThunkName(D, Virtual, nv, v);
+ Mangler.mangleThunk(D, Virtual, nv, v);
os.flush();
}
Modified: cfe/trunk/lib/CodeGen/Mangle.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/Mangle.h?rev=80744&r1=80743&r2=80744&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/Mangle.h (original)
+++ cfe/trunk/lib/CodeGen/Mangle.h Tue Sep 1 19:28:47 2009
@@ -34,8 +34,8 @@
bool mangleName(const NamedDecl *D, ASTContext &Context,
llvm::raw_ostream &os);
- void mangleThunkName(const NamedDecl *D, bool Virtual, int64_t n,
- int64_t vn, ASTContext &Context, llvm::raw_ostream &os);
+ void mangleThunk(const NamedDecl *D, bool Virtual, int64_t n, int64_t vn,
+ ASTContext &Context, llvm::raw_ostream &os);
void mangleGuardVariable(const VarDecl *D, ASTContext &Context,
llvm::raw_ostream &os);
void mangleCXXVtable(QualType T, ASTContext &Context, llvm::raw_ostream &os);
More information about the cfe-commits
mailing list