diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-22 00:18:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-22 00:18:18 +0000 |
commit | 4cc2b85861f362e49205710c19266a8ffed1a0d9 (patch) | |
tree | 0deaa942a86d63f614631afd7d97870a513ca59f | |
parent | 64da9409cb27f43825a8ab0a3b49c2a73cae36ba (diff) |
add method to access a template argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67458 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/IRBuilder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 61e12af811..a4ae671e46 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 //===--------------------------------------------------------------------===// |