From ddc49d6121d90728fc08c1fdc03e2cccdf58d272 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 8 Jul 2004 22:09:07 +0000 Subject: [PATCH] Add a new method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14705 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Mangler.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h index 2528420d47d..4fa5329fa56 100644 --- a/include/llvm/Support/Mangler.h +++ b/include/llvm/Support/Mangler.h @@ -20,6 +20,7 @@ namespace llvm { class Value; +class Type; class Module; class GlobalValue; @@ -32,6 +33,9 @@ class Mangler { Module &M; bool AddUnderscorePrefix; + unsigned TypeCounter; + std::map TypeMap; + typedef std::map ValueMap; ValueMap Memo; @@ -44,6 +48,10 @@ public: // symbols will be prefixed with an underscore. Mangler(Module &M, bool AddUnderscorePrefix = false); + /// getTypeID - Return a unique ID for the specified LLVM type. + /// + unsigned getTypeID(const Type *Ty); + /// getValueName - Returns the mangled name of V, an LLVM Value, /// in the current module. ///