summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RefactoringTest.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-08-13 17:54:56 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-08-13 17:54:56 +0000
commit7a8017290ad3a9a680589e4aec341f9999e21775 (patch)
tree080288d731eba095e350a5a7076c2dc05f51243f /clang/unittests/Tooling/RefactoringTest.cpp
parent8e1c269a61440a24b7c4d24ada2d9ac0db2f1084 (diff)
downloadbcm5719-llvm-7a8017290ad3a9a680589e4aec341f9999e21775.tar.gz
bcm5719-llvm-7a8017290ad3a9a680589e4aec341f9999e21775.zip
Update makeLibCall to return both the call and the chain associated with the libcall instead of just the call. This allows us to specify libcalls that return void.
LowerCallTo returns a pair with the return value of the call as the first element and the chain associated with the return value as the second element. If we lower a call that has a void return value, LowerCallTo returns an SDValue with a NULL SDNode and the chain for the call. Thus makeLibCall by just returning the first value makes it impossible for you to set up the chain so that the call is not eliminated as dead code. I also updated all references to makeLibCall to reflect the new return type. llvm-svn: 188300
Diffstat (limited to 'clang/unittests/Tooling/RefactoringTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud