Updated to use the proper .exports file for the

target platform, depending on whether the target
supports the blocks API or not

llvm-svn: 95024
This commit is contained in:
Sean Callanan 2010-02-01 23:01:38 +00:00
parent 8a000012f2
commit 25ef2910a9
3 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,31 @@
_EDGetDisassembler
_EDGetRegisterName
_EDRegisterIsStackPointer
_EDRegisterIsProgramCounter
_EDCreateInsts
_EDReleaseInst
_EDInstByteSize
_EDGetInstString
_EDInstIsBranch
_EDInstIsMove
_EDBranchTargetID
_EDMoveSourceID
_EDMoveTargetID
_EDNumTokens
_EDGetToken
_EDGetTokenString
_EDOperandIndexForToken
_EDTokenIsWhitespace
_EDTokenIsPunctuation
_EDTokenIsOpcode
_EDTokenIsLiteral
_EDTokenIsRegister
_EDTokenIsNegativeLiteral
_EDLiteralTokenAbsoluteValue
_EDRegisterTokenValue
_EDNumOperands
_EDGetOperand
_EDEvaluateOperand
_EDBlockCreateInsts
_EDBlockEvaluateOperand
_EDBlockVisitTokens

View File

@ -10,7 +10,7 @@
LEVEL = ../..
LIBRARYNAME = EnhancedDisassembly
BUILT_SOURCES = EDInfo.inc
BUILT_SOURCES = EDInfo.inc EnhancedDisassembly.exports
# Include this here so we can get the configuration of the targets
# that have been configured for construction. We have to do this
@ -51,5 +51,17 @@ EDInfo.inc: $(TBLGEN)
$(Echo) "Building semantic information header"
$(Verb) $(TableGen) -o $(call SYSPATH, $@) -gen-enhanced-disassembly-header /dev/null
EnhancedDisassembly.exports: EnhancedDisassembly.exports.noblocks EnhancedDisassembly.exports.blocks
$(Echo) "Copying exports file"
ifeq ($(HOST_OS),Darwin)
$(Verb) if [ $(DARWIN_VERS) -ge 10 ] ; \
then $(CP) -f EnhancedDisassembly.exports.blocks EnhancedDisassembly.exports ; \
else $(CP) -f EnhancedDisassembly.exports.noblocks EnhancedDisassembly.exports ; \
fi
else
$(Verb) $(CP) -f EnhancedDisassembly.exports.noblocks EnhancedDisassembly.exports
endif
clean::
-$(Verb) $(RM) -f EDInfo.inc
-$(Verb) $(RM) -f EnhancedDisassembly.exports