diff options
author | Dan Gohman <djg@cray.com> | 2007-09-14 20:08:19 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-09-14 20:08:19 +0000 |
commit | 5f222be33b97130f9a858851ced893df2ee11586 (patch) | |
tree | 8c3bb052505c1aa007d453755f4ee921341127c8 /lib | |
parent | 03cbeb74a306d0da9a2701ce9a3be904f91cb62d (diff) | |
download | external_llvm-5f222be33b97130f9a858851ced893df2ee11586.zip external_llvm-5f222be33b97130f9a858851ced893df2ee11586.tar.gz external_llvm-5f222be33b97130f9a858851ced893df2ee11586.tar.bz2 |
Remove spurious consts. This fixes warnings with compilers that
are strict about such things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 2 | ||||
-rw-r--r-- | lib/Support/APFloat.cpp | 4 | ||||
-rw-r--r-- | lib/System/Unix/Program.inc | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 8a59231..d6aab29 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -116,7 +116,7 @@ MachineInstr::~MachineInstr() { /// getOpcode - Returns the opcode of this MachineInstr. /// -const int MachineInstr::getOpcode() const { +int MachineInstr::getOpcode() const { return TID->Opcode; } diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 397ff6d..68c1fcc 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -1629,7 +1629,7 @@ APFloat::convertF80LongDoubleAPFloatToAPInt() const { APInt APFloat::convertDoubleAPFloatToAPInt() const { - assert(semantics == (const llvm::fltSemantics* const)&IEEEdouble); + assert(semantics == (const llvm::fltSemantics*)&IEEEdouble); assert (partCount()==1); uint64_t myexponent, mysignificand; @@ -1659,7 +1659,7 @@ APFloat::convertDoubleAPFloatToAPInt() const { APInt APFloat::convertFloatAPFloatToAPInt() const { - assert(semantics == (const llvm::fltSemantics* const)&IEEEsingle); + assert(semantics == (const llvm::fltSemantics*)&IEEEsingle); assert (partCount()==1); uint32_t myexponent, mysignificand; diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 896e809..6517a96 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -196,9 +196,9 @@ Program::ExecuteAndWait(const Path& path, // Execute! if (envp != 0) - execve (path.c_str(), (char** const)args, (char**)envp); + execve (path.c_str(), (char**)args, (char**)envp); else - execv (path.c_str(), (char** const)args); + execv (path.c_str(), (char**)args); // If the execve() failed, we should exit and let the parent pick up // our non-zero exit status. exit (errno); |