From 834384bf5bd3c104e352d3ef4956541f5932529c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 13 May 2014 18:45:48 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208716 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Function.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/llvm/IR/Function.h') diff --git a/include/llvm/IR/Function.h b/include/llvm/IR/Function.h index 3566002ae1..22444bd300 100644 --- a/include/llvm/IR/Function.h +++ b/include/llvm/IR/Function.h @@ -23,7 +23,7 @@ #include "llvm/IR/Attributes.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/CallingConv.h" -#include "llvm/IR/GlobalValue.h" +#include "llvm/IR/GlobalObject.h" #include "llvm/Support/Compiler.h" namespace llvm { @@ -68,7 +68,7 @@ private: mutable ilist_half_node Sentinel; }; -class Function : public GlobalValue, public ilist_node { +class Function : public GlobalObject, public ilist_node { public: typedef iplist ArgumentListType; typedef iplist BasicBlockListType; -- cgit v1.2.3