[llvm-commits] [llvm] r78690 - in /llvm/trunk: include/llvm/ include/llvm/Analysis/ include/llvm/Assembly/ include/llvm/Bitcode/ include/llvm/CodeGen/ include/llvm/Debugger/ include/llvm/Support/ include/llvm/Transforms/Utils/ lib/Archive/ lib/AsmParser/ lib/Bitcode/Reader/ lib/VMCore/ tools/bugpoint/ tools/llvm-db/
Benjamin Kramer
benny.kra at googlemail.com
Tue Aug 11 10:45:13 PDT 2009
Author: d0k
Date: Tue Aug 11 12:45:13 2009
New Revision: 78690
URL: http://llvm.org/viewvc/llvm-project?rev=78690&view=rev
Log:
Make LLVMContext and LLVMContextImpl classes instead of structs.
Modified:
llvm/trunk/include/llvm/Analysis/ConstantFolding.h
llvm/trunk/include/llvm/Analysis/DebugInfo.h
llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
llvm/trunk/include/llvm/Analysis/SparsePropagation.h
llvm/trunk/include/llvm/Analysis/ValueTracking.h
llvm/trunk/include/llvm/Assembly/Parser.h
llvm/trunk/include/llvm/BasicBlock.h
llvm/trunk/include/llvm/Bitcode/Archive.h
llvm/trunk/include/llvm/Bitcode/ReaderWriter.h
llvm/trunk/include/llvm/CodeGen/ValueTypes.h
llvm/trunk/include/llvm/Constant.h
llvm/trunk/include/llvm/Constants.h
llvm/trunk/include/llvm/Debugger/Debugger.h
llvm/trunk/include/llvm/DerivedTypes.h
llvm/trunk/include/llvm/Function.h
llvm/trunk/include/llvm/GlobalVariable.h
llvm/trunk/include/llvm/InstrTypes.h
llvm/trunk/include/llvm/Instruction.h
llvm/trunk/include/llvm/Instructions.h
llvm/trunk/include/llvm/Intrinsics.h
llvm/trunk/include/llvm/LLVMContext.h
llvm/trunk/include/llvm/Linker.h
llvm/trunk/include/llvm/Metadata.h
llvm/trunk/include/llvm/Module.h
llvm/trunk/include/llvm/Support/ConstantFolder.h
llvm/trunk/include/llvm/Support/NoFolder.h
llvm/trunk/include/llvm/Support/TargetFolder.h
llvm/trunk/include/llvm/Transforms/Utils/Cloning.h
llvm/trunk/include/llvm/Transforms/Utils/Local.h
llvm/trunk/include/llvm/Transforms/Utils/PromoteMemToReg.h
llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h
llvm/trunk/include/llvm/Value.h
llvm/trunk/lib/Archive/ArchiveInternals.h
llvm/trunk/lib/AsmParser/LLLexer.h
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h
llvm/trunk/lib/VMCore/ConstantFold.h
llvm/trunk/lib/VMCore/LLVMContext.cpp
llvm/trunk/lib/VMCore/LLVMContextImpl.h
llvm/trunk/tools/bugpoint/BugDriver.h
llvm/trunk/tools/llvm-db/CLIDebugger.h
Modified: llvm/trunk/include/llvm/Analysis/ConstantFolding.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ConstantFolding.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ConstantFolding.h (original)
+++ llvm/trunk/include/llvm/Analysis/ConstantFolding.h Tue Aug 11 12:45:13 2009
@@ -22,7 +22,7 @@
class TargetData;
class Function;
class Type;
- struct LLVMContext;
+ class LLVMContext;
/// ConstantFoldInstruction - Attempt to constant fold the specified
/// instruction. If successful, the constant result is returned, if not, null
Modified: llvm/trunk/include/llvm/Analysis/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DebugInfo.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/DebugInfo.h Tue Aug 11 12:45:13 2009
@@ -40,7 +40,7 @@
class DebugLoc;
struct DebugLocTracker;
class Instruction;
- struct LLVMContext;
+ class LLVMContext;
class DIDescriptor {
protected:
Modified: llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ScalarEvolution.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ScalarEvolution.h (original)
+++ llvm/trunk/include/llvm/Analysis/ScalarEvolution.h Tue Aug 11 12:45:13 2009
@@ -41,7 +41,7 @@
class Type;
class ScalarEvolution;
class TargetData;
- struct LLVMContext;
+ class LLVMContext;
class Loop;
class LoopInfo;
class Operator;
Modified: llvm/trunk/include/llvm/Analysis/SparsePropagation.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/SparsePropagation.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/SparsePropagation.h (original)
+++ llvm/trunk/include/llvm/Analysis/SparsePropagation.h Tue Aug 11 12:45:13 2009
@@ -31,7 +31,7 @@
class BasicBlock;
class Function;
class SparseSolver;
- struct LLVMContext;
+ class LLVMContext;
template<typename T> class SmallVectorImpl;
Modified: llvm/trunk/include/llvm/Analysis/ValueTracking.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ValueTracking.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ValueTracking.h (original)
+++ llvm/trunk/include/llvm/Analysis/ValueTracking.h Tue Aug 11 12:45:13 2009
@@ -23,7 +23,7 @@
class Instruction;
class APInt;
class TargetData;
- struct LLVMContext;
+ class LLVMContext;
/// ComputeMaskedBits - Determine which of the bits specified in Mask are
/// known to be either zero or one and return them in the KnownZero/KnownOne
Modified: llvm/trunk/include/llvm/Assembly/Parser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Assembly/Parser.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Assembly/Parser.h (original)
+++ llvm/trunk/include/llvm/Assembly/Parser.h Tue Aug 11 12:45:13 2009
@@ -21,7 +21,7 @@
class Module;
class SMDiagnostic;
class raw_ostream;
-struct LLVMContext;
+class LLVMContext;
/// This function is the main interface to the LLVM Assembly Parser. It parses
/// an ASCII file that (presumably) contains LLVM Assembly code. It returns a
Modified: llvm/trunk/include/llvm/BasicBlock.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/BasicBlock.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/BasicBlock.h (original)
+++ llvm/trunk/include/llvm/BasicBlock.h Tue Aug 11 12:45:13 2009
@@ -22,7 +22,7 @@
namespace llvm {
class TerminatorInst;
-struct LLVMContext;
+class LLVMContext;
template<> struct ilist_traits<Instruction>
: public SymbolTableListTraits<Instruction, BasicBlock> {
Modified: llvm/trunk/include/llvm/Bitcode/Archive.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/Archive.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Archive.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Archive.h Tue Aug 11 12:45:13 2009
@@ -32,7 +32,7 @@
class Module; // From VMCore
class Archive; // Declared below
class ArchiveMemberHeader; // Internal implementation class
-struct LLVMContext; // Global data
+class LLVMContext; // Global data
/// This class is the main class manipulated by users of the Archive class. It
/// holds information about one member of the Archive. It is also the element
Modified: llvm/trunk/include/llvm/Bitcode/ReaderWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/ReaderWriter.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/ReaderWriter.h (original)
+++ llvm/trunk/include/llvm/Bitcode/ReaderWriter.h Tue Aug 11 12:45:13 2009
@@ -23,7 +23,7 @@
class MemoryBuffer;
class ModulePass;
class BitstreamWriter;
- struct LLVMContext;
+ class LLVMContext;
class raw_ostream;
/// getBitcodeModuleProvider - Read the header of the specified bitcode buffer
Modified: llvm/trunk/include/llvm/CodeGen/ValueTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ValueTypes.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ValueTypes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ValueTypes.h Tue Aug 11 12:45:13 2009
@@ -23,7 +23,7 @@
namespace llvm {
class Type;
- struct LLVMContext;
+ class LLVMContext;
struct EVT { // EVT = Machine Value Type
public:
Modified: llvm/trunk/include/llvm/Constant.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Constant.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Constant.h (original)
+++ llvm/trunk/include/llvm/Constant.h Tue Aug 11 12:45:13 2009
@@ -20,7 +20,7 @@
class APInt;
template<typename T> class SmallVectorImpl;
- struct LLVMContext;
+ class LLVMContext;
/// This is an important base class in LLVM. It provides the common facilities
/// of all constant values in an LLVM program. A constant is a value that is
Modified: llvm/trunk/include/llvm/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Constants.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Constants.h (original)
+++ llvm/trunk/include/llvm/Constants.h Tue Aug 11 12:45:13 2009
@@ -231,7 +231,7 @@
APFloat Val;
void *operator new(size_t, unsigned);// DO NOT IMPLEMENT
ConstantFP(const ConstantFP &); // DO NOT IMPLEMENT
- friend struct LLVMContextImpl;
+ friend class LLVMContextImpl;
protected:
ConstantFP(const Type *Ty, const APFloat& V);
protected:
Modified: llvm/trunk/include/llvm/Debugger/Debugger.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Debugger/Debugger.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Debugger/Debugger.h (original)
+++ llvm/trunk/include/llvm/Debugger/Debugger.h Tue Aug 11 12:45:13 2009
@@ -20,7 +20,7 @@
namespace llvm {
class Module;
class InferiorProcess;
- struct LLVMContext;
+ class LLVMContext;
/// Debugger class - This class implements the LLVM source-level debugger.
/// This allows clients to handle the user IO processing without having to
Modified: llvm/trunk/include/llvm/DerivedTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DerivedTypes.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DerivedTypes.h (original)
+++ llvm/trunk/include/llvm/DerivedTypes.h Tue Aug 11 12:45:13 2009
@@ -31,7 +31,7 @@
class VectorValType;
class IntegerValType;
class APInt;
-struct LLVMContext;
+class LLVMContext;
class DerivedType : public Type {
friend class Type;
Modified: llvm/trunk/include/llvm/Function.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Function.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Function.h (original)
+++ llvm/trunk/include/llvm/Function.h Tue Aug 11 12:45:13 2009
@@ -26,7 +26,7 @@
namespace llvm {
class FunctionType;
-struct LLVMContext;
+class LLVMContext;
// Traits for intrusive list of basic blocks...
template<> struct ilist_traits<BasicBlock>
Modified: llvm/trunk/include/llvm/GlobalVariable.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/GlobalVariable.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/GlobalVariable.h (original)
+++ llvm/trunk/include/llvm/GlobalVariable.h Tue Aug 11 12:45:13 2009
@@ -28,7 +28,7 @@
class Module;
class Constant;
-struct LLVMContext;
+class LLVMContext;
template<typename ValueSubClass, typename ItemParentClass>
class SymbolTableListTraits;
Modified: llvm/trunk/include/llvm/InstrTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/InstrTypes.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/InstrTypes.h (original)
+++ llvm/trunk/include/llvm/InstrTypes.h Tue Aug 11 12:45:13 2009
@@ -23,7 +23,7 @@
namespace llvm {
-struct LLVMContext;
+class LLVMContext;
//===----------------------------------------------------------------------===//
// TerminatorInst Class
Modified: llvm/trunk/include/llvm/Instruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instruction.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instruction.h (original)
+++ llvm/trunk/include/llvm/Instruction.h Tue Aug 11 12:45:13 2009
@@ -20,7 +20,7 @@
namespace llvm {
-struct LLVMContext;
+class LLVMContext;
template<typename ValueSubClass, typename ItemParentClass>
class SymbolTableListTraits;
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Tue Aug 11 12:45:13 2009
@@ -29,7 +29,7 @@
class ConstantInt;
class ConstantRange;
class APInt;
-struct LLVMContext;
+class LLVMContext;
//===----------------------------------------------------------------------===//
// AllocationInst Class
Modified: llvm/trunk/include/llvm/Intrinsics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Intrinsics.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Intrinsics.h (original)
+++ llvm/trunk/include/llvm/Intrinsics.h Tue Aug 11 12:45:13 2009
@@ -23,7 +23,7 @@
class Type;
class FunctionType;
class Function;
-struct LLVMContext;
+class LLVMContext;
class Module;
class AttrListPtr;
Modified: llvm/trunk/include/llvm/LLVMContext.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LLVMContext.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LLVMContext.h (original)
+++ llvm/trunk/include/llvm/LLVMContext.h Tue Aug 11 12:45:13 2009
@@ -17,14 +17,15 @@
namespace llvm {
-struct LLVMContextImpl;
+class LLVMContextImpl;
/// This is an important class for using LLVM in a threaded context. It
/// (opaquely) owns and manages the core "global" data of LLVM's core
/// infrastructure, including the type and constant uniquing tables.
/// LLVMContext itself provides no locking guarantees, so you should be careful
/// to have one context per thread.
-struct LLVMContext {
+class LLVMContext {
+public:
LLVMContextImpl* pImpl;
bool RemoveDeadMetadata();
LLVMContext();
Modified: llvm/trunk/include/llvm/Linker.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Linker.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Linker.h (original)
+++ llvm/trunk/include/llvm/Linker.h Tue Aug 11 12:45:13 2009
@@ -21,7 +21,7 @@
namespace llvm {
class Module;
-struct LLVMContext;
+class LLVMContext;
/// This class provides the core functionality of linking in LLVM. It retains a
/// Module object which is the composite of the modules and libraries linked
Modified: llvm/trunk/include/llvm/Metadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Metadata.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Metadata.h (original)
+++ llvm/trunk/include/llvm/Metadata.h Tue Aug 11 12:45:13 2009
@@ -26,7 +26,7 @@
namespace llvm {
class Constant;
-struct LLVMContext;
+class LLVMContext;
template<class ConstantClass, class TypeClass, class ValType>
struct ConstantCreator;
@@ -205,7 +205,7 @@
class NamedMDNode : public MetadataBase, public ilist_node<NamedMDNode> {
friend class SymbolTableListTraits<NamedMDNode, Module>;
- friend struct LLVMContextImpl;
+ friend class LLVMContextImpl;
NamedMDNode(const NamedMDNode &); // DO NOT IMPLEMENT
void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
Modified: llvm/trunk/include/llvm/Module.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Module.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Module.h (original)
+++ llvm/trunk/include/llvm/Module.h Tue Aug 11 12:45:13 2009
@@ -26,7 +26,7 @@
class GlobalValueRefMap; // Used by ConstantVals.cpp
class FunctionType;
-struct LLVMContext;
+class LLVMContext;
template<> struct ilist_traits<Function>
: public SymbolTableListTraits<Function, Module> {
Modified: llvm/trunk/include/llvm/Support/ConstantFolder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ConstantFolder.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ConstantFolder.h (original)
+++ llvm/trunk/include/llvm/Support/ConstantFolder.h Tue Aug 11 12:45:13 2009
@@ -21,7 +21,7 @@
namespace llvm {
-struct LLVMContext;
+class LLVMContext;
/// ConstantFolder - Create constants with minimum, target independent, folding.
class ConstantFolder {
Modified: llvm/trunk/include/llvm/Support/NoFolder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/NoFolder.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/NoFolder.h (original)
+++ llvm/trunk/include/llvm/Support/NoFolder.h Tue Aug 11 12:45:13 2009
@@ -28,7 +28,7 @@
namespace llvm {
-struct LLVMContext;
+class LLVMContext;
/// NoFolder - Create "constants" (actually, values) with no folding.
class NoFolder {
Modified: llvm/trunk/include/llvm/Support/TargetFolder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/TargetFolder.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/TargetFolder.h (original)
+++ llvm/trunk/include/llvm/Support/TargetFolder.h Tue Aug 11 12:45:13 2009
@@ -25,7 +25,7 @@
namespace llvm {
class TargetData;
-struct LLVMContext;
+class LLVMContext;
/// TargetFolder - Create constants with target dependent folding.
class TargetFolder {
Modified: llvm/trunk/include/llvm/Transforms/Utils/Cloning.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/Cloning.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/Cloning.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/Cloning.h Tue Aug 11 12:45:13 2009
@@ -38,7 +38,7 @@
class TargetData;
class Loop;
class LoopInfo;
-struct LLVMContext;
+class LLVMContext;
/// CloneModule - Return an exact copy of the specified module
///
Modified: llvm/trunk/include/llvm/Transforms/Utils/Local.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/Local.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/Local.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/Local.h Tue Aug 11 12:45:13 2009
@@ -27,7 +27,7 @@
class AllocaInst;
class ConstantExpr;
class TargetData;
-struct LLVMContext;
+class LLVMContext;
struct DbgInfoIntrinsic;
template<typename T> class SmallVectorImpl;
Modified: llvm/trunk/include/llvm/Transforms/Utils/PromoteMemToReg.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/PromoteMemToReg.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/PromoteMemToReg.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/PromoteMemToReg.h Tue Aug 11 12:45:13 2009
@@ -23,7 +23,7 @@
class DominatorTree;
class DominanceFrontier;
class AliasSetTracker;
-struct LLVMContext;
+class LLVMContext;
/// isAllocaPromotable - Return true if this alloca is legal for promotion.
/// This is true if there are only loads and stores to the alloca...
Modified: llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/ValueMapper.h Tue Aug 11 12:45:13 2009
@@ -20,7 +20,7 @@
namespace llvm {
class Value;
class Instruction;
- struct LLVMContext;
+ class LLVMContext;
typedef DenseMap<const Value *, Value *> ValueMapTy;
Value *MapValue(const Value *V, ValueMapTy &VM, LLVMContext &Context);
Modified: llvm/trunk/include/llvm/Value.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Value.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Value.h (original)
+++ llvm/trunk/include/llvm/Value.h Tue Aug 11 12:45:13 2009
@@ -42,7 +42,7 @@
class raw_ostream;
class AssemblyAnnotationWriter;
class ValueHandleBase;
-struct LLVMContext;
+class LLVMContext;
//===----------------------------------------------------------------------===//
// Value Class
Modified: llvm/trunk/lib/Archive/ArchiveInternals.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Archive/ArchiveInternals.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/lib/Archive/ArchiveInternals.h (original)
+++ llvm/trunk/lib/Archive/ArchiveInternals.h Tue Aug 11 12:45:13 2009
@@ -31,7 +31,7 @@
namespace llvm {
- struct LLVMContext;
+ class LLVMContext;
/// The ArchiveMemberHeader structure is used internally for bitcode
/// archives.
Modified: llvm/trunk/lib/AsmParser/LLLexer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLLexer.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLLexer.h (original)
+++ llvm/trunk/lib/AsmParser/LLLexer.h Tue Aug 11 12:45:13 2009
@@ -24,7 +24,7 @@
class MemoryBuffer;
class Type;
class SMDiagnostic;
- struct LLVMContext;
+ class LLVMContext;
class LLLexer {
const char *CurPtr;
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.h Tue Aug 11 12:45:13 2009
@@ -26,7 +26,7 @@
namespace llvm {
class MemoryBuffer;
- struct LLVMContext;
+ class LLVMContext;
//===----------------------------------------------------------------------===//
// BitcodeReaderValueList Class
Modified: llvm/trunk/lib/VMCore/ConstantFold.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ConstantFold.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/ConstantFold.h (original)
+++ llvm/trunk/lib/VMCore/ConstantFold.h Tue Aug 11 12:45:13 2009
@@ -23,7 +23,7 @@
class Value;
class Constant;
class Type;
- struct LLVMContext;
+ class LLVMContext;
// Constant fold various types of instruction...
Constant *ConstantFoldCastInstruction(
Modified: llvm/trunk/lib/VMCore/LLVMContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/LLVMContext.cpp?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/LLVMContext.cpp (original)
+++ llvm/trunk/lib/VMCore/LLVMContext.cpp Tue Aug 11 12:45:13 2009
@@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
//
// This file implements LLVMContext, as a wrapper around the opaque
-// struct LLVMContextImpl.
+// class LLVMContextImpl.
//
//===----------------------------------------------------------------------===//
Modified: llvm/trunk/lib/VMCore/LLVMContextImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/LLVMContextImpl.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/LLVMContextImpl.h (original)
+++ llvm/trunk/lib/VMCore/LLVMContextImpl.h Tue Aug 11 12:45:13 2009
@@ -34,7 +34,7 @@
class ConstantFP;
class MDString;
class MDNode;
-struct LLVMContext;
+class LLVMContext;
class Type;
class Value;
@@ -90,7 +90,8 @@
static bool isPod() { return false; }
};
-struct LLVMContextImpl {
+class LLVMContextImpl {
+public:
sys::SmartRWMutex<true> ConstantsLock;
typedef DenseMap<DenseMapAPIntKeyInfo::KeyTy, ConstantInt*,
Modified: llvm/trunk/tools/bugpoint/BugDriver.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/BugDriver.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/BugDriver.h (original)
+++ llvm/trunk/tools/bugpoint/BugDriver.h Tue Aug 11 12:45:13 2009
@@ -30,7 +30,7 @@
class BasicBlock;
class AbstractInterpreter;
class Instruction;
-struct LLVMContext;
+class LLVMContext;
class DebugCrashes;
Modified: llvm/trunk/tools/llvm-db/CLIDebugger.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-db/CLIDebugger.h?rev=78690&r1=78689&r2=78690&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-db/CLIDebugger.h (original)
+++ llvm/trunk/tools/llvm-db/CLIDebugger.h Tue Aug 11 12:45:13 2009
@@ -24,7 +24,7 @@
struct SourceLanguage;
class ProgramInfo;
class RuntimeInfo;
- struct LLVMContext;
+ class LLVMContext;
/// CLIDebugger - This class implements the command line interface for the
/// LLVM debugger.
More information about the llvm-commits
mailing list