projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7894578
)
Fix MCSectionELF::ShouldOmitSectionDirective's matching of .data and
author
Dan Gohman
<gohman@apple.com>
Thu, 13 Aug 2009 23:56:34 +0000
(23:56 +0000)
committer
Dan Gohman
<gohman@apple.com>
Thu, 13 Aug 2009 23:56:34 +0000
(23:56 +0000)
friends so that it doesn't match sections like .data.rel.local, which
should not be emitted as section directives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78963
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCSectionELF.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCSectionELF.cpp
b/lib/MC/MCSectionELF.cpp
index 6e6f9990fe822331f1bd184ba85225d32b17515e..246bf4adac8fc3e6cdda15eddda00b48d7f38f9b 100644
(file)
--- a/
lib/MC/MCSectionELF.cpp
+++ b/
lib/MC/MCSectionELF.cpp
@@
-27,9
+27,9
@@
bool MCSectionELF::ShouldOmitSectionDirective(const char *Name,
const TargetAsmInfo &TAI) const {
// FIXME: Does .section .bss/.data/.text work everywhere??
- if (str
ncmp(Name, ".text", 5) == 0 ||
- str
ncmp(Name, ".data", 5
) == 0 ||
- (str
ncmp(Name, ".bss", 4) == 0 &&
+ if (str
cmp(Name, ".text") == 0 ||
+ str
cmp(Name, ".data"
) == 0 ||
+ (str
cmp(Name, ".bss") == 0 &&
!TAI.usesELFSectionDirectiveForBSS()))
return true;