diff options
-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 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 //===--------------------------------------------------------------------===// |