aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetLoweringObjectFile.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-13 06:38:18 +0000
committerChris Lattner <sabre@nondot.org>2010-01-13 06:38:18 +0000
commit4813035b726e7f0a3fd17bec437185fc72a50988 (patch)
tree62052660d055912fa25fb27784a0e19c3498f777 /include/llvm/Target/TargetLoweringObjectFile.h
parent36e69ae3c1ff56828ee51d7d9a106bafdca7e46d (diff)
downloadexternal_llvm-4813035b726e7f0a3fd17bec437185fc72a50988.zip
external_llvm-4813035b726e7f0a3fd17bec437185fc72a50988.tar.gz
external_llvm-4813035b726e7f0a3fd17bec437185fc72a50988.tar.bz2
change Mangler::makeNameProper to return its result in a SmallVector
instead of returning it in an std::string. Based on this change: 1. Change TargetLoweringObjectFileCOFF::getCOFFSection to take a StringRef 2. Change a bunch of targets to call makeNameProper with a smallstring, making several of them *much* more efficient. 3. Rewrite Mangler::makeNameProper to not build names and then prepend prefixes, not use temporary std::strings, and to avoid other crimes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLoweringObjectFile.h')
-rw-r--r--include/llvm/Target/TargetLoweringObjectFile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h
index 9a64191..3dd7471 100644
--- a/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/include/llvm/Target/TargetLoweringObjectFile.h
@@ -352,7 +352,7 @@ public:
/// getCOFFSection - Return the MCSection for the specified COFF section.
/// FIXME: Switch this to a semantic view eventually.
- const MCSection *getCOFFSection(const char *Name, bool isDirective,
+ const MCSection *getCOFFSection(StringRef Name, bool isDirective,
SectionKind K) const;
};