Douglas Gregor | 6ec3668 | 2009-02-18 23:53:56 +0000 | [diff] [blame^] | 1 | //===--- Mangle.h - Mangle C++ Names ----------------------------*- C++ -*-===// |
Douglas Gregor | 5f2bfd4 | 2009-02-13 00:10:09 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // Implements C++ name mangling according to the Itanium C++ ABI, |
| 11 | // which is used in GCC 3.2 and newer (and many compilers that are |
| 12 | // ABI-compatible with GCC): |
| 13 | // |
| 14 | // http://www.codesourcery.com/public/cxx-abi/abi.html |
| 15 | // |
| 16 | //===----------------------------------------------------------------------===// |
| 17 | #ifndef LLVM_CLANG_CODEGEN_MANGLE_H |
| 18 | #define LLVM_CLANG_CODEGEN_MANGLE_H |
| 19 | |
| 20 | namespace llvm { |
| 21 | class raw_ostream; |
| 22 | } |
| 23 | |
| 24 | namespace clang { |
| 25 | class ASTContext; |
| 26 | class NamedDecl; |
| 27 | |
| 28 | bool mangleName(const NamedDecl *D, ASTContext &Context, |
| 29 | llvm::raw_ostream &os); |
| 30 | } |
| 31 | |
| 32 | #endif |