[llvm] r198879 - Re-remove dead code.
Rafael EspĂndola
rafael.espindola at gmail.com
Thu Jan 9 12:27:18 PST 2014
Thanks!
On 9 January 2014 14:22, Nadav Rotem <nrotem at apple.com> wrote:
> Author: nadav
> Date: Thu Jan 9 13:22:07 2014
> New Revision: 198879
>
> URL: http://llvm.org/viewvc/llvm-project?rev=198879&view=rev
> Log:
> Re-remove dead code.
> This reverts r198854.
>
>
> Modified:
> llvm/trunk/include/llvm/IR/Module.h
> llvm/trunk/lib/IR/Module.cpp
>
> Modified: llvm/trunk/include/llvm/IR/Module.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Module.h?rev=198879&r1=198878&r2=198879&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/IR/Module.h (original)
> +++ llvm/trunk/include/llvm/IR/Module.h Thu Jan 9 13:22:07 2014
> @@ -142,12 +142,6 @@ public:
> /// The named metadata constant interators.
> typedef NamedMDListType::const_iterator const_named_metadata_iterator;
>
> - /// An enumeration for describing the endianess of the target machine.
> - enum Endianness { LittleEndian, BigEndian };
> -
> - /// An enumeration for describing the size of a pointer on the target machine.
> - enum PointerSize { Pointer32, Pointer64 };
> -
> /// This enumeration defines the supported behaviors of module flags.
> enum ModFlagBehavior {
> /// Emits an error if two values disagree, otherwise the resulting value is
> @@ -236,14 +230,6 @@ public:
> /// @returns a string containing the target triple.
> const std::string &getTargetTriple() const { return TargetTriple; }
>
> - /// Get the target endian information.
> - /// @returns Endianess - an enumeration for the endianess of the target
> - Endianness getEndianness() const;
> -
> - /// Get the target pointer size.
> - /// @returns PointerSize - an enumeration for the size of the target's pointer
> - PointerSize getPointerSize() const;
> -
> /// Get the global data context.
> /// @returns LLVMContext - a container for LLVM's global information
> LLVMContext &getContext() const { return Context; }
>
> Modified: llvm/trunk/lib/IR/Module.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Module.cpp?rev=198879&r1=198878&r2=198879&view=diff
> ==============================================================================
> --- llvm/trunk/lib/IR/Module.cpp (original)
> +++ llvm/trunk/lib/IR/Module.cpp Thu Jan 9 13:22:07 2014
> @@ -60,51 +60,6 @@ Module::~Module() {
> delete static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab);
> }
>
> -/// Target endian information.
> -Module::Endianness Module::getEndianness() const {
> - StringRef temp = DataLayout;
> - Module::Endianness ret = BigEndian;
> -
> - while (!temp.empty()) {
> - std::pair<StringRef, StringRef> P = getToken(temp, "-");
> -
> - StringRef token = P.first;
> - temp = P.second;
> -
> - if (token[0] == 'e') {
> - ret = LittleEndian;
> - } else if (token[0] == 'E') {
> - ret = BigEndian;
> - }
> - }
> -
> - return ret;
> -}
> -
> -/// Target Pointer Size information.
> -Module::PointerSize Module::getPointerSize() const {
> - StringRef temp = DataLayout;
> - Module::PointerSize ret = Pointer64;
> -
> - while (!temp.empty()) {
> - std::pair<StringRef, StringRef> TmpP = getToken(temp, "-");
> - temp = TmpP.second;
> - TmpP = getToken(TmpP.first, ":");
> - StringRef token = TmpP.second, signalToken = TmpP.first;
> -
> - if (signalToken[0] == 'p') {
> - int size = 0;
> - getToken(token, ":").first.getAsInteger(10, size);
> - if (size == 32)
> - ret = Pointer32;
> - else if (size == 64)
> - ret = Pointer64;
> - }
> - }
> -
> - return ret;
> -}
> -
> /// getNamedValue - Return the first global value in the module with
> /// the specified name, of arbitrary type. This method returns null
> /// if a global with the specified name is not found.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list