[llvm] r196526 - Fix minor GCC warnings.
Matt Arsenault
Matthew.Arsenault at amd.com
Thu Dec 5 11:37:37 PST 2013
Author: arsenm
Date: Thu Dec 5 13:37:36 2013
New Revision: 196526
URL: http://llvm.org/viewvc/llvm-project?rev=196526&view=rev
Log:
Fix minor GCC warnings.
Unused typedefs and unused variables.
Modified:
llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
llvm/trunk/tools/lli/ChildTarget/ChildTarget.cpp
llvm/trunk/tools/lli/RemoteTargetExternal.cpp
Modified: llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp?rev=196526&r1=196525&r2=196526&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp Thu Dec 5 13:37:36 2013
@@ -949,7 +949,6 @@ void MachineBlockPlacement::buildCFGChai
BlockChain &FunctionChain = *BlockToChain[&F.front()];
buildChain(&F.front(), FunctionChain, BlockWorkList);
- typedef SmallPtrSet<MachineBasicBlock *, 16> FunctionBlockSetType;
DEBUG({
// Crash at the end so we get all of the debugging output first.
bool BadFunc = false;
Modified: llvm/trunk/tools/lli/ChildTarget/ChildTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/ChildTarget/ChildTarget.cpp?rev=196526&r1=196525&r2=196526&view=diff
==============================================================================
--- llvm/trunk/tools/lli/ChildTarget/ChildTarget.cpp (original)
+++ llvm/trunk/tools/lli/ChildTarget/ChildTarget.cpp Thu Dec 5 13:37:36 2013
@@ -99,6 +99,7 @@ void LLIChildTarget::handleAllocateSpace
// Read and verify the message data size.
uint32_t DataSize;
int rc = ReadBytes(&DataSize, 4);
+ (void)rc;
assert(rc == 4);
assert(DataSize == 8);
Modified: llvm/trunk/tools/lli/RemoteTargetExternal.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/RemoteTargetExternal.cpp?rev=196526&r1=196525&r2=196526&view=diff
==============================================================================
--- llvm/trunk/tools/lli/RemoteTargetExternal.cpp (original)
+++ llvm/trunk/tools/lli/RemoteTargetExternal.cpp Thu Dec 5 13:37:36 2013
@@ -59,6 +59,7 @@ void RemoteTargetExternal::stop() {
void RemoteTargetExternal::SendAllocateSpace(uint32_t Alignment, uint32_t Size) {
int rc;
+ (void)rc;
uint32_t MsgType = (uint32_t)LLI_AllocateSpace;
rc = WriteBytes(&MsgType, 4);
assert(rc == 4 && "Error writing message type.");
More information about the llvm-commits
mailing list