2009-02-19 07:53:56 +08:00
|
|
|
//===--- Mangle.h - Mangle C++ Names ----------------------------*- C++ -*-===//
|
2009-02-13 08:10:09 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Implements C++ name mangling according to the Itanium C++ ABI,
|
|
|
|
// which is used in GCC 3.2 and newer (and many compilers that are
|
|
|
|
// ABI-compatible with GCC):
|
|
|
|
//
|
|
|
|
// http://www.codesourcery.com/public/cxx-abi/abi.html
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2009-03-21 16:24:40 +08:00
|
|
|
|
2009-02-13 08:10:09 +08:00
|
|
|
#ifndef LLVM_CLANG_CODEGEN_MANGLE_H
|
|
|
|
#define LLVM_CLANG_CODEGEN_MANGLE_H
|
|
|
|
|
2009-04-15 13:36:58 +08:00
|
|
|
#include "CGCXX.h"
|
|
|
|
|
2009-02-13 08:10:09 +08:00
|
|
|
namespace llvm {
|
|
|
|
class raw_ostream;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
class ASTContext;
|
2009-04-15 13:36:58 +08:00
|
|
|
class CXXConstructorDecl;
|
2009-04-17 09:58:57 +08:00
|
|
|
class CXXDestructorDecl;
|
2009-02-13 08:10:09 +08:00
|
|
|
class NamedDecl;
|
2009-04-14 02:02:10 +08:00
|
|
|
class VarDecl;
|
|
|
|
|
2009-02-13 08:10:09 +08:00
|
|
|
bool mangleName(const NamedDecl *D, ASTContext &Context,
|
|
|
|
llvm::raw_ostream &os);
|
2009-04-14 02:02:10 +08:00
|
|
|
void mangleGuardVariable(const VarDecl *D, ASTContext &Context,
|
|
|
|
llvm::raw_ostream &os);
|
2009-04-15 13:36:58 +08:00
|
|
|
void mangleCXXCtor(const CXXConstructorDecl *D, CXXCtorType Type,
|
|
|
|
ASTContext &Context, llvm::raw_ostream &os);
|
2009-04-17 09:58:57 +08:00
|
|
|
void mangleCXXDtor(const CXXDestructorDecl *D, CXXDtorType Type,
|
|
|
|
ASTContext &Context, llvm::raw_ostream &os);
|
2009-02-13 08:10:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|