aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-01 01:16:21 +0000
committerChris Lattner <sabre@nondot.org>2009-03-01 01:16:21 +0000
commitd2b6cb0a2b6e5994ff871027617c5efd69f7e3ad (patch)
treef9102564ab52c6d6b1e5515b04568d93f39c8035 /include
parenta27ea9e89f38e9bcca4d67defb0bae887a16d72c (diff)
downloadexternal_llvm-d2b6cb0a2b6e5994ff871027617c5efd69f7e3ad.zip
external_llvm-d2b6cb0a2b6e5994ff871027617c5efd69f7e3ad.tar.gz
external_llvm-d2b6cb0a2b6e5994ff871027617c5efd69f7e3ad.tar.bz2
simplify handling "don't print top level name" processing, so that we get
stuff like %A = type { %A*} instead of an upref. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Assembly/Writer.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h
index 1138919..34d9053 100644
--- a/include/llvm/Assembly/Writer.h
+++ b/include/llvm/Assembly/Writer.h
@@ -38,8 +38,11 @@ public:
void clear();
- void print(const Type *Ty, raw_ostream &OS);
- void printAtLeastOneLevel(const Type *Ty, raw_ostream &OS);
+ void print(const Type *Ty, raw_ostream &OS, bool IgnoreTopLevelName = false);
+
+ void printAtLeastOneLevel(const Type *Ty, raw_ostream &OS) {
+ print(Ty, OS, true);
+ }
/// hasTypeName - Return true if the type has a name in TypeNames, false
/// otherwise.
@@ -52,7 +55,7 @@ public:
private:
void CalcTypeName(const Type *Ty, SmallVectorImpl<const Type *> &TypeStack,
- raw_ostream &OS);
+ raw_ostream &OS, bool IgnoreTopLevelName = false);
};
// WriteTypeSymbolic - This attempts to write the specified type as a symbolic