mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 15:33:33 +00:00
Jump through some silly hoops to make GCC accept that a function may not always
be called. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c36b5b9730
commit
ca9f7efdf8
@ -29,6 +29,7 @@
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
@ -207,6 +208,8 @@ static const Function *getParent(const Value *V) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static bool sameParent(const Value *O1, const Value *O2) ATTRIBUTE_UNUSED;
|
||||
|
||||
static bool sameParent(const Value *O1, const Value *O2) {
|
||||
|
||||
const Function *F1 = getParent(O1);
|
||||
|
Loading…
Reference in New Issue
Block a user