diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-28 17:00:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-28 17:00:49 +0000 |
commit | 4ca0ef70cd5e9ac28907f0cf45aebd3dcb4c8b44 (patch) | |
tree | 510dd4013f9d949e98b355cc724c9458684b632b /include | |
parent | 98bb341955e585f177bb67117fb2f825aef39591 (diff) | |
download | llvm-4ca0ef70cd5e9ac28907f0cf45aebd3dcb4c8b44.tar.gz llvm-4ca0ef70cd5e9ac28907f0cf45aebd3dcb4c8b44.tar.bz2 llvm-4ca0ef70cd5e9ac28907f0cf45aebd3dcb4c8b44.tar.xz |
The global prefix is always one char. Don't use a string for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 7a99394621..6dfb42c76a 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -115,9 +115,9 @@ namespace llvm { /// LabelSuffix - This is appended to emitted labels. const char *DebugLabelSuffix; // Defaults to ":" - /// GlobalPrefix - If this is set to a non-empty string, it is prepended - /// onto all global symbols. This is often used for "_" or ".". - const char *GlobalPrefix; // Defaults to "" + /// If this is set to anything other than '\0', it is prepended + /// onto all global symbols. This is often used for '_'. + char GlobalPrefix; // Defaults to '\0' /// PrivateGlobalPrefix - This prefix is used for globals like constant /// pool entries that are completely private to the .s file and should not @@ -428,7 +428,7 @@ namespace llvm { return DebugLabelSuffix; } - const char *getGlobalPrefix() const { + char getGlobalPrefix() const { return GlobalPrefix; } const char *getPrivateGlobalPrefix() const { |