summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-11-28 17:00:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-11-28 17:00:49 +0000
commit848493d886c46f00cea951ec8b76615b63f86f61 (patch)
tree68d03eb75750e63d586c30cc69224f1e00e8953e /llvm/lib/MC
parent9c19956845808a7a0972e58b08864da36c1ddaf0 (diff)
downloadbcm5719-llvm-848493d886c46f00cea951ec8b76615b63f86f61.tar.gz
bcm5719-llvm-848493d886c46f00cea951ec8b76615b63f86f61.zip
The global prefix is always one char. Don't use a string for it.
llvm-svn: 195926
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCAsmInfo.cpp2
-rw-r--r--llvm/lib/MC/MCAsmInfoCOFF.cpp2
-rw-r--r--llvm/lib/MC/MCAsmInfoDarwin.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp
index 28f1c951641..a2ff92ff4f9 100644
--- a/llvm/lib/MC/MCAsmInfo.cpp
+++ b/llvm/lib/MC/MCAsmInfo.cpp
@@ -41,7 +41,7 @@ MCAsmInfo::MCAsmInfo() {
CommentString = "#";
LabelSuffix = ":";
DebugLabelSuffix = ":";
- GlobalPrefix = "";
+ GlobalPrefix = '\0';
PrivateGlobalPrefix = ".";
LinkerPrivateGlobalPrefix = "";
InlineAsmStart = "APP";
diff --git a/llvm/lib/MC/MCAsmInfoCOFF.cpp b/llvm/lib/MC/MCAsmInfoCOFF.cpp
index 9d9f98e72b9..54ae3a272db 100644
--- a/llvm/lib/MC/MCAsmInfoCOFF.cpp
+++ b/llvm/lib/MC/MCAsmInfoCOFF.cpp
@@ -18,7 +18,7 @@ using namespace llvm;
void MCAsmInfoCOFF::anchor() { }
MCAsmInfoCOFF::MCAsmInfoCOFF() {
- GlobalPrefix = "_";
+ GlobalPrefix = '_';
// MingW 4.5 and later support .comm with log2 alignment, but .lcomm uses byte
// alignment.
COMMDirectiveAlignmentIsInBytes = false;
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp
index 704c8161f88..8a021ce3ae7 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp
@@ -23,7 +23,7 @@ void MCAsmInfoDarwin::anchor() { }
MCAsmInfoDarwin::MCAsmInfoDarwin() {
// Common settings for all Darwin targets.
// Syntax:
- GlobalPrefix = "_";
+ GlobalPrefix = '_';
PrivateGlobalPrefix = "L";
LinkerPrivateGlobalPrefix = "l";
HasSingleParameterDotFile = false;
OpenPOWER on IntegriCloud