mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-01 01:30:36 +00:00
Fixed few warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160493 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0818e71e8f
commit
72ea0c9ffa
@ -354,7 +354,7 @@ public:
|
|||||||
/// variable, possibly emitting it to memory if needed. This is used by the
|
/// variable, possibly emitting it to memory if needed. This is used by the
|
||||||
/// Emitter.
|
/// Emitter.
|
||||||
virtual void *getOrEmitGlobalVariable(const GlobalVariable *GV) {
|
virtual void *getOrEmitGlobalVariable(const GlobalVariable *GV) {
|
||||||
return getPointerToGlobal((GlobalValue*)GV);
|
return getPointerToGlobal((const GlobalValue *)GV);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Registers a listener to be called back on various events within
|
/// Registers a listener to be called back on various events within
|
||||||
|
@ -172,7 +172,7 @@ public:
|
|||||||
|
|
||||||
// If we should include the address of the node in the label, do so now.
|
// If we should include the address of the node in the label, do so now.
|
||||||
if (DTraits.hasNodeAddressLabel(Node, G))
|
if (DTraits.hasNodeAddressLabel(Node, G))
|
||||||
O << "|" << (void*)Node;
|
O << "|" << static_cast<const void*>(Node);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string edgeSourceLabels;
|
std::string edgeSourceLabels;
|
||||||
@ -192,7 +192,7 @@ public:
|
|||||||
|
|
||||||
// If we should include the address of the node in the label, do so now.
|
// If we should include the address of the node in the label, do so now.
|
||||||
if (DTraits.hasNodeAddressLabel(Node, G))
|
if (DTraits.hasNodeAddressLabel(Node, G))
|
||||||
O << "|" << (void*)Node;
|
O << "|" << static_cast<const void*>(Node);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DTraits.hasEdgeDestLabels()) {
|
if (DTraits.hasEdgeDestLabels()) {
|
||||||
|
@ -942,7 +942,7 @@ void SelectionDAGBuilder::visit(unsigned Opcode, const User &I) {
|
|||||||
default: llvm_unreachable("Unknown instruction type encountered!");
|
default: llvm_unreachable("Unknown instruction type encountered!");
|
||||||
// Build the switch statement using the Instruction.def file.
|
// Build the switch statement using the Instruction.def file.
|
||||||
#define HANDLE_INST(NUM, OPCODE, CLASS) \
|
#define HANDLE_INST(NUM, OPCODE, CLASS) \
|
||||||
case Instruction::OPCODE: visit##OPCODE((CLASS&)I); break;
|
case Instruction::OPCODE: visit##OPCODE((const CLASS&)I); break;
|
||||||
#include "llvm/Instruction.def"
|
#include "llvm/Instruction.def"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user