From: Chris Lattner Date: Tue, 17 Aug 2004 06:06:37 +0000 (+0000) Subject: Allow an arbitrary prefix. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2c2475296d55bd38281cba0c2b41ba3a897164dd;p=oota-llvm.git Allow an arbitrary prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15864 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h index 4fa5329fa56..4043d85a715 100644 --- a/include/llvm/Support/Mangler.h +++ b/include/llvm/Support/Mangler.h @@ -31,7 +31,7 @@ class Mangler { std::set MangledGlobals; Module &M; - bool AddUnderscorePrefix; + const char *Prefix; unsigned TypeCounter; std::map TypeMap; @@ -44,9 +44,9 @@ class Mangler { void InsertName(GlobalValue *GV, std::map &Names); public: - // Mangler ctor - if AddUnderscorePrefix is true, then all public global - // symbols will be prefixed with an underscore. - Mangler(Module &M, bool AddUnderscorePrefix = false); + // Mangler ctor - if a prefix is specified, it will be prepended onto all + // symbols. + Mangler(Module &M, const char *Prefix = ""); /// getTypeID - Return a unique ID for the specified LLVM type. ///