aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/TargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-26 07:33:58 +0000
committerChris Lattner <sabre@nondot.org>2009-07-26 07:33:58 +0000
commitf40761d5229322c08701049f89aa10f7f7b8b743 (patch)
treef2e518e73ea7336cbd533cec5f9f97d7ef6ae666 /lib/Target/TargetAsmInfo.cpp
parent6468b44d3a300007077ff0d8c70b8cf15ae618e8 (diff)
downloadexternal_llvm-f40761d5229322c08701049f89aa10f7f7b8b743.zip
external_llvm-f40761d5229322c08701049f89aa10f7f7b8b743.tar.gz
external_llvm-f40761d5229322c08701049f89aa10f7f7b8b743.tar.bz2
remove a densemap from TargetAsmInfo that was uniquing the targetflags strings,
just use a smallstring instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77144 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetAsmInfo.cpp')
-rw-r--r--lib/Target/TargetAsmInfo.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp
index b0aeff6..0052075 100644
--- a/lib/Target/TargetAsmInfo.cpp
+++ b/lib/Target/TargetAsmInfo.cpp
@@ -416,19 +416,6 @@ TargetAsmInfo::getUnnamedSection(const char *Directive, unsigned Flags,
return &S;
}
-const std::string&
-TargetAsmInfo::getSectionFlags(unsigned Flags) const {
- SectionFlags::FlagsStringsMapType::iterator I = FlagsStrings.find(Flags);
-
- // We didn't print these flags yet, print and save them to map. This reduces
- // amount of heap trashing due to std::string construction / concatenation.
- if (I == FlagsStrings.end())
- I = FlagsStrings.insert(std::make_pair(Flags,
- printSectionFlags(Flags))).first;
-
- return I->second;
-}
-
unsigned TargetAsmInfo::getULEB128Size(unsigned Value) {
unsigned Size = 0;
do {