mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 09:16:06 +00:00

1. it wasn't applying to definitions, only declarations, e.g. int x __asm("foo") 2. multiple definitions were conflicting, they weren't getting merged. 3. the code was duplicated in several places. llvm-svn: 67442
34 lines
936 B
C++
34 lines
936 B
C++
//===--- Mangle.h - Mangle C++ Names ----------------------------*- C++ -*-===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_CLANG_CODEGEN_MANGLE_H
|
|
#define LLVM_CLANG_CODEGEN_MANGLE_H
|
|
|
|
namespace llvm {
|
|
class raw_ostream;
|
|
}
|
|
|
|
namespace clang {
|
|
class ASTContext;
|
|
class NamedDecl;
|
|
|
|
bool mangleName(const NamedDecl *D, ASTContext &Context,
|
|
llvm::raw_ostream &os);
|
|
}
|
|
|
|
#endif
|