Fix minor GCC warnings.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 5 Dec 2013 19:37:36 +0000 (19:37 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 5 Dec 2013 19:37:36 +0000 (19:37 +0000)
Unused typedefs and unused variables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196526 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBlockPlacement.cpp
tools/lli/ChildTarget/ChildTarget.cpp
tools/lli/RemoteTargetExternal.cpp

index 7eec164f148d6848f7bcdfce80b57d98ee354d6e..b725bfb49c830506ca926711f0f8af4c906b9fed 100644 (file)
@@ -949,7 +949,6 @@ void MachineBlockPlacement::buildCFGChains(MachineFunction &F) {
   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;
index 55fcae9def8fab51a54490a00f0e2e70a6951a2e..c177a047db1c27e3f9692e972975b5525efd3242 100644 (file)
@@ -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);
 
index 742a948c00426af71a91690a34ee77098ca4cc2d..f6ed8496eb6bd342146c366c3622600ebca177b9 100644 (file)
@@ -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.");