aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/IRBuilder.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-22 00:18:18 +0000
committerChris Lattner <sabre@nondot.org>2009-03-22 00:18:18 +0000
commita00279854afe509de84b8035587f62e221bd99f8 (patch)
tree0deaa942a86d63f614631afd7d97870a513ca59f /include/llvm/Support/IRBuilder.h
parent54e70f6a453260610bd25b276e8af6a2660559a2 (diff)
downloadexternal_llvm-a00279854afe509de84b8035587f62e221bd99f8.zip
external_llvm-a00279854afe509de84b8035587f62e221bd99f8.tar.gz
external_llvm-a00279854afe509de84b8035587f62e221bd99f8.tar.bz2
add method to access a template argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r--include/llvm/Support/IRBuilder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index 61e12af..a4ae671 100644
--- a/include/llvm/Support/IRBuilder.h
+++ b/include/llvm/Support/IRBuilder.h
@@ -51,6 +51,10 @@ public:
/// getFolder - Get the constant folder being used.
const T& getFolder() { return Folder; }
+ /// isNamePreserving - Return true if this builder is configured to actually
+ /// add the requested names to IR created through it.
+ bool isNamePreserving() const { return preserveNames; }
+
//===--------------------------------------------------------------------===//
// Builder configuration methods
//===--------------------------------------------------------------------===//