add method to access a template argument.
authorChris Lattner <sabre@nondot.org>
Sun, 22 Mar 2009 00:18:18 +0000 (00:18 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 22 Mar 2009 00:18:18 +0000 (00:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67458 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IRBuilder.h

index 61e12af811c9d72e4dbc3f60291a722c151183f4..a4ae671e463ae7208d52a4c3b2f76256a3d6d7ad 100644 (file)
@@ -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
   //===--------------------------------------------------------------------===//