From 304a564c1f84eaaee8dc218a2eb57443c370e12f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 25 Oct 2005 17:58:00 +0000 Subject: [PATCH] Add a missing Module::setTargetTriple method. Remove Function::aiterator and Module::giterator typedefs (and const versions) as they should have been removed when abegin/gbegin were removed. Thanks to alkis for bringing this to my attn. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23978 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Function.h | 2 -- include/llvm/Module.h | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 14a5e48a1cb..58184de3b18 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -57,8 +57,6 @@ public: typedef ArgumentListType::iterator arg_iterator; typedef ArgumentListType::const_iterator const_arg_iterator; - typedef arg_iterator aiterator; // legacy, deprecated - typedef const_arg_iterator const_aiterator; // legacy, deprecated private: // Important things that make up a function! diff --git a/include/llvm/Module.h b/include/llvm/Module.h index d491c752fd7..1ee8750eca4 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -52,17 +52,15 @@ public: typedef iplist FunctionListType; typedef SetVector LibraryListType; - // Global Variable iterators... - typedef GlobalListType::iterator global_iterator; - typedef GlobalListType::const_iterator const_global_iterator; - typedef global_iterator giterator; // these are legacy, deprecated - typedef const_global_iterator const_giterator; + // Global Variable iterators. + typedef GlobalListType::iterator global_iterator; + typedef GlobalListType::const_iterator const_global_iterator; - // Function iterators... + // Function iterators. typedef FunctionListType::iterator iterator; typedef FunctionListType::const_iterator const_iterator; - // Library list iterators + // Library list iterators. typedef LibraryListType::const_iterator lib_iterator; enum Endianness { AnyEndianness, LittleEndian, BigEndian }; @@ -87,9 +85,11 @@ public: Module(const std::string &ModuleID); ~Module(); - const std::string& getModuleIdentifier() const { return ModuleID; } - const std::string& getTargetTriple() const { return TargetTriple; } - void setTargetTriple(const std::string& T) { TargetTriple = T; } + const std::string &getModuleIdentifier() const { return ModuleID; } + void setModuleIdentifier(const std::string &ID) { ModuleID = ID; } + + const std::string &getTargetTriple() const { return TargetTriple; } + void setTargetTriple(const std::string &T) { TargetTriple = T; } /// Target endian information... Endianness getEndianness() const { return Endian; }