diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-12-10 18:55:37 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-12-10 18:55:37 +0000 |
commit | c5019a3d8728cdd0ff6cdbcff7f3147e21675cde (patch) | |
tree | 42f5dc810f2654c4692a85bbb2737481295a1c14 | |
parent | 7c30637b0e3b487cc8db0ce24a3e844998cfc479 (diff) | |
download | llvm-c5019a3d8728cdd0ff6cdbcff7f3147e21675cde.tar.gz llvm-c5019a3d8728cdd0ff6cdbcff7f3147e21675cde.tar.bz2 llvm-c5019a3d8728cdd0ff6cdbcff7f3147e21675cde.tar.xz |
Fix gcc warnings.
Unused variable and unused typedef in release build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196947 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/MachineBlockPlacement.cpp | 2 | ||||
-rw-r--r-- | tools/lli/RemoteTargetExternal.cpp | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineBlockPlacement.cpp b/lib/CodeGen/MachineBlockPlacement.cpp index 7eec164f14..177e4409df 100644 --- a/lib/CodeGen/MachineBlockPlacement.cpp +++ b/lib/CodeGen/MachineBlockPlacement.cpp @@ -949,7 +949,9 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) { BlockChain &FunctionChain = *BlockToChain[&F.front()]; buildChain(&F.front(), FunctionChain, BlockWorkList); +#ifndef NDEBUG typedef SmallPtrSet<MachineBasicBlock *, 16> FunctionBlockSetType; +#endif DEBUG({ // Crash at the end so we get all of the debugging output first. bool BadFunc = false; diff --git a/tools/lli/RemoteTargetExternal.cpp b/tools/lli/RemoteTargetExternal.cpp index f6ed8496eb..f8c581d574 100644 --- a/tools/lli/RemoteTargetExternal.cpp +++ b/tools/lli/RemoteTargetExternal.cpp @@ -80,6 +80,7 @@ void RemoteTargetExternal::SendLoadSection(uint64_t Addr, uint32_t Size, bool IsCode) { int rc; + (void)rc; uint32_t MsgType = IsCode ? LLI_LoadCodeSection : LLI_LoadDataSection; rc = WriteBytes(&MsgType, 4); assert(rc == 4 && "Error writing message type."); @@ -97,6 +98,7 @@ void RemoteTargetExternal::SendLoadSection(uint64_t Addr, void RemoteTargetExternal::SendExecute(uint64_t Addr) { int rc; + (void)rc; uint32_t MsgType = (uint32_t)LLI_Execute; rc = WriteBytes(&MsgType, 4); assert(rc == 4 && "Error writing message type."); @@ -111,6 +113,7 @@ void RemoteTargetExternal::SendExecute(uint64_t Addr) { void RemoteTargetExternal::SendTerminate() { int rc; + (void)rc; uint32_t MsgType = (uint32_t)LLI_Terminate; rc = WriteBytes(&MsgType, 4); assert(rc == 4 && "Error writing message type."); @@ -121,6 +124,7 @@ void RemoteTargetExternal::SendTerminate() { void RemoteTargetExternal::Receive(LLIMessageType ExpectedMsgType) { int rc; + (void)rc; uint32_t MsgType; rc = ReadBytes(&MsgType, 4); assert(rc == 4 && "Error reading message type."); @@ -140,6 +144,7 @@ void RemoteTargetExternal::Receive(LLIMessageType ExpectedMsgType, int &Data) { void RemoteTargetExternal::Receive(LLIMessageType ExpectedMsgType, uint64_t &Data) { int rc; + (void)rc; uint32_t MsgType; rc = ReadBytes(&MsgType, 4); assert(rc == 4 && "Error reading message type."); |