aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-15 04:42:49 +0000
committerChris Lattner <sabre@nondot.org>2009-07-15 04:42:49 +0000
commit1ad1c1d327aa47a077ece9c0f49fc59200872b63 (patch)
treeefd65cdd84bc7e86458746eeb44590803b6e5e7a /lib/CodeGen
parent48fe5b85e51ea6468a56159d905b89bcaa606956 (diff)
downloadexternal_llvm-1ad1c1d327aa47a077ece9c0f49fc59200872b63.zip
external_llvm-1ad1c1d327aa47a077ece9c0f49fc59200872b63.tar.gz
external_llvm-1ad1c1d327aa47a077ece9c0f49fc59200872b63.tar.bz2
remove printSuffixedName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp32
1 files changed, 5 insertions, 27 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 7ac780f..8c6ed50 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1648,6 +1648,11 @@ void AsmPrinter::printPICJumpTableSetLabel(unsigned uid, unsigned uid2,
void AsmPrinter::printDataDirective(const Type *type, unsigned AddrSpace) {
const TargetData *TD = TM.getTargetData();
switch (type->getTypeID()) {
+ case Type::FloatTyID: case Type::DoubleTyID:
+ case Type::X86_FP80TyID: case Type::FP128TyID: case Type::PPC_FP128TyID:
+ assert(0 && "Should have already output floating point constant.");
+ default:
+ assert(0 && "Can't handle printing this type of thing");
case Type::IntegerTyID: {
unsigned BitWidth = cast<IntegerType>(type)->getBitWidth();
if (BitWidth <= 8)
@@ -1678,36 +1683,9 @@ void AsmPrinter::printDataDirective(const Type *type, unsigned AddrSpace) {
O << TAI->getData32bitsDirective(AddrSpace);
}
break;
- case Type::FloatTyID: case Type::DoubleTyID:
- case Type::X86_FP80TyID: case Type::FP128TyID: case Type::PPC_FP128TyID:
- assert (0 && "Should have already output floating point constant.");
- default:
- assert (0 && "Can't handle printing this type of thing");
- break;
}
}
-void AsmPrinter::printSuffixedName(const char *Name, const char *Suffix,
- const char *Prefix) {
- if (Name[0]=='\"')
- O << '\"';
- O << TAI->getPrivateGlobalPrefix();
- if (Prefix) O << Prefix;
- if (Name[0]=='\"')
- O << '\"';
- if (Name[0]=='\"')
- O << Name[1];
- else
- O << Name;
- O << Suffix;
- if (Name[0]=='\"')
- O << '\"';
-}
-
-void AsmPrinter::printSuffixedName(const std::string &Name, const char* Suffix) {
- printSuffixedName(Name.c_str(), Suffix);
-}
-
void AsmPrinter::printVisibility(const std::string& Name,
unsigned Visibility) const {
if (Visibility == GlobalValue::HiddenVisibility) {