diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-13 18:45:48 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-13 18:45:48 +0000 |
| commit | 99e05cf163f14ecc70ef68e550ddb568a075e64b (patch) | |
| tree | 896c929db42235b47392ec0e74dc412b12f50ff6 /llvm/include/llvm-c | |
| parent | 94cbb666b26ddb5ab7cad0a52e2b057db517bae0 (diff) | |
| download | bcm5719-llvm-99e05cf163f14ecc70ef68e550ddb568a075e64b.tar.gz bcm5719-llvm-99e05cf163f14ecc70ef68e550ddb568a075e64b.zip | |
Split GlobalValue into GlobalValue and GlobalObject.
This allows code to statically accept a Function or a GlobalVariable, but
not an alias. This is already a cleanup by itself IMHO, but the main
reason for it is that it gives a lot more confidence that the refactoring to fix
the design of GlobalAlias is correct. That will be a followup patch.
llvm-svn: 208716
Diffstat (limited to 'llvm/include/llvm-c')
| -rw-r--r-- | llvm/include/llvm-c/Core.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index f7121a5c61a..cd9263d4914 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -1173,9 +1173,10 @@ LLVMTypeRef LLVMX86MMXType(void); macro(ConstantStruct) \ macro(ConstantVector) \ macro(GlobalValue) \ - macro(Function) \ macro(GlobalAlias) \ - macro(GlobalVariable) \ + macro(GlobalObject) \ + macro(Function) \ + macro(GlobalVariable) \ macro(UndefValue) \ macro(Instruction) \ macro(BinaryOperator) \ |

