mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
silence warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
19d220419a
commit
9c5d4de837
@ -79,7 +79,7 @@ namespace llvm {
|
||||
};
|
||||
}
|
||||
|
||||
static const char *SPARCCondCodeToString(SPCC::CondCodes CC) {
|
||||
inline static const char *SPARCCondCodeToString(SPCC::CondCodes CC) {
|
||||
switch (CC) {
|
||||
default: assert(0 && "Unknown condition code");
|
||||
case SPCC::ICC_NE: return "ne";
|
||||
|
@ -2259,13 +2259,11 @@ public:
|
||||
unsigned OpNo = 0;
|
||||
bool NodeHasChain = NodeHasProperty (N, SDNPHasChain, ISE);
|
||||
bool HasChain = PatternHasProperty(N, SDNPHasChain, ISE);
|
||||
bool HasOutFlag = PatternHasProperty(N, SDNPOutFlag, ISE);
|
||||
bool EmittedUseCheck = false;
|
||||
if (HasChain) {
|
||||
if (NodeHasChain)
|
||||
OpNo = 1;
|
||||
if (!isRoot) {
|
||||
const SDNodeInfo &CInfo = ISE.getSDNodeInfo(N->getOperator());
|
||||
// Multiple uses of actual result?
|
||||
emitCheck(RootName + ".hasOneUse()");
|
||||
EmittedUseCheck = true;
|
||||
@ -2329,7 +2327,6 @@ public:
|
||||
(PatternHasProperty(N, SDNPInFlag, ISE) ||
|
||||
PatternHasProperty(N, SDNPOptInFlag, ISE) ||
|
||||
PatternHasProperty(N, SDNPOutFlag, ISE))) {
|
||||
const SDNodeInfo &CInfo = ISE.getSDNodeInfo(N->getOperator());
|
||||
if (!EmittedUseCheck) {
|
||||
// Multiple uses of actual result?
|
||||
emitCheck(RootName + ".hasOneUse()");
|
||||
@ -3318,8 +3315,7 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
||||
PatternsByOpcode[Node->getOperator()].push_back(&PatternsToMatch[i]);
|
||||
} else {
|
||||
const ComplexPattern *CP;
|
||||
if (IntInit *II =
|
||||
dynamic_cast<IntInit*>(Node->getLeafValue())) {
|
||||
if (dynamic_cast<IntInit*>(Node->getLeafValue())) {
|
||||
PatternsByOpcode[getSDNodeNamed("imm")].push_back(&PatternsToMatch[i]);
|
||||
} else if ((CP = NodeGetComplexPattern(Node, *this))) {
|
||||
std::vector<Record*> OpNodes = CP->getRootNodes();
|
||||
|
Loading…
x
Reference in New Issue
Block a user