aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-09-02 00:28:47 +0000
committerMike Stump <mrs@apple.com>2009-09-02 00:28:47 +0000
commit883f127b28fe6ecffcdf5f86b087fd2c20dbecb8 (patch)
tree4ae82973265a63f9913984117f06f07da8f162a4
parent141c5afc2bbb550b83f18e0284585b5ae477ad2a (diff)
Shorten name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80744 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/Mangle.cpp13
-rw-r--r--lib/CodeGen/Mangle.h4
2 files changed, 8 insertions, 9 deletions
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp
index c5014d3ff7..75628b7fd6 100644
--- a/lib/CodeGen/Mangle.cpp
+++ b/lib/CodeGen/Mangle.cpp
@@ -39,8 +39,7 @@ namespace {
: 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 @@ void CXXNameMangler::mangleName(const NamedDecl *ND) {
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 @@ namespace clang {
/// \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 @@ namespace clang {
"Use mangleCXXDtor for destructor decls!");
CXXNameMangler Mangler(Context, os);
- Mangler.mangleThunkName(D, Virtual, nv, v);
+ Mangler.mangleThunk(D, Virtual, nv, v);
os.flush();
}
diff --git a/lib/CodeGen/Mangle.h b/lib/CodeGen/Mangle.h
index a2fba4e669..fd886796c7 100644
--- a/lib/CodeGen/Mangle.h
+++ b/lib/CodeGen/Mangle.h
@@ -34,8 +34,8 @@ namespace clang {
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);