summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCSectionELF.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-01-22 18:21:23 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-01-22 18:21:23 +0000
commita46918d2b1b63aa3db94aa10b9ea70209b84e274 (patch)
treebbd891a282bc1076acbf99c27001b5d617965420 /include/llvm/MC/MCSectionELF.h
parent50a5aa19ca5e164904e1fd62ab5cd20ac62cb9a1 (diff)
downloadllvm-a46918d2b1b63aa3db94aa10b9ea70209b84e274.tar.gz
llvm-a46918d2b1b63aa3db94aa10b9ea70209b84e274.tar.bz2
llvm-a46918d2b1b63aa3db94aa10b9ea70209b84e274.tar.xz
Simplify some uses of str(n)cmp with StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSectionELF.h')
-rw-r--r--include/llvm/MC/MCSectionELF.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h
index 4ec745fff8..c48ff03e6d 100644
--- a/include/llvm/MC/MCSectionELF.h
+++ b/include/llvm/MC/MCSectionELF.h
@@ -47,8 +47,7 @@ public:
/// ShouldOmitSectionDirective - Decides whether a '.section' directive
/// should be printed before the section name
- bool ShouldOmitSectionDirective(const char *Name,
- const MCAsmInfo &MAI) const;
+ bool ShouldOmitSectionDirective(StringRef Name, const MCAsmInfo &MAI) const;
/// ShouldPrintSectionType - Only prints the section type if supported
bool ShouldPrintSectionType(unsigned Ty) const;