From d11e6472573c61c44ca946c843ad83acdbe3c71f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 14 Feb 2004 00:30:31 +0000 Subject: [PATCH] Add method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11425 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Mangler.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h index 5b312f8ef44..2528420d47d 100644 --- a/include/llvm/Support/Mangler.h +++ b/include/llvm/Support/Mangler.h @@ -1,4 +1,4 @@ -//===-- Mangler.h - Self-contained c/asm llvm name mangler ------*- C++ -*-===// +//===-- Mangler.h - Self-contained llvm name mangler ------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,25 +7,21 @@ // //===----------------------------------------------------------------------===// // -// Unified name mangler for CWriter and assembly backends. +// Unified name mangler for various backends. // //===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_MANGLER_H #define LLVM_SUPPORT_MANGLER_H -namespace llvm { - -class Value; -class Module; - -} // End llvm namespace - #include #include #include namespace llvm { +class Value; +class Module; +class GlobalValue; class Mangler { /// This keeps track of which global values have had their names @@ -40,6 +36,8 @@ class Mangler { ValueMap Memo; unsigned Count; + + void InsertName(GlobalValue *GV, std::map &Names); public: // Mangler ctor - if AddUnderscorePrefix is true, then all public global