~ubuntu-branches/ubuntu/trusty/llvm-toolchain-snapshot/trusty-201310232150

« back to all changes in this revision

Viewing changes to clang/lib/CodeGen/CodeGenModule.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-27 15:01:57 UTC
  • mfrom: (0.10.1) (0.9.1) (0.8.1) (0.7.1) (0.6.1) (0.5.2)
  • Revision ID: package-import@ubuntu.com-20130527150157-tdkrsjpuvht7v0qx
Tags: 1:3.4~svn182733-1~exp1
* New snapshot release (3.4 release)
* Add a symlink of libLLVM-3.4.so.1 to usr/lib/llvm-3.4/lib/libLLVM-3.4.so
    to fix make the llvm-config-3.4 --libdir work (Closes: #708677)
  * Various packages rename to allow co installations:
    * libclang1 => libclang1-3.4
    * libclang1-dbg => libclang1-3.4-dbg
    * libclang-dev => libclang-3.4-dev
    * libclang-common-dev => libclang-common-3.4-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
317
317
                          llvm::GlobalValue *> StaticExternCMap;
318
318
  StaticExternCMap StaticExternCValues;
319
319
 
 
320
  /// \brief thread_local variables defined or used in this TU.
 
321
  std::vector<std::pair<const VarDecl *, llvm::GlobalVariable *> >
 
322
    CXXThreadLocals;
 
323
 
 
324
  /// \brief thread_local variables with initializers that need to run
 
325
  /// before any thread_local variable in this TU is odr-used.
 
326
  std::vector<llvm::Constant*> CXXThreadLocalInits;
 
327
 
320
328
  /// CXXGlobalInits - Global variables with initializers that need to run
321
329
  /// before main.
322
330
  std::vector<llvm::Constant*> CXXGlobalInits;
347
355
  /// \brief The complete set of modules that has been imported.
348
356
  llvm::SetVector<clang::Module *> ImportedModules;
349
357
 
 
358
  /// \brief A vector of metadata strings.
 
359
  SmallVector<llvm::Value *, 16> LinkerOptionsMetadata;
 
360
 
350
361
  /// @name Cache for Objective-C runtime types
351
362
  /// @{
352
363
 
705
716
  /// (if one is created).
706
717
  llvm::Constant *GetAddrOfConstantString(StringRef Str,
707
718
                                          const char *GlobalName=0,
708
 
                                          unsigned Alignment=1);
 
719
                                          unsigned Alignment=0);
709
720
 
710
721
  /// GetAddrOfConstantCString - Returns a pointer to a character array
711
722
  /// containing the literal and a terminating '\0' character. The result has
715
726
  /// created).
716
727
  llvm::Constant *GetAddrOfConstantCString(const std::string &str,
717
728
                                           const char *GlobalName=0,
718
 
                                           unsigned Alignment=1);
 
729
                                           unsigned Alignment=0);
719
730
 
720
731
  /// GetAddrOfConstantCompoundLiteral - Returns a pointer to a constant global
721
732
  /// variable for the given file-scope compound literal expression.
742
753
  llvm::Value *getBuiltinLibFunction(const FunctionDecl *FD,
743
754
                                     unsigned BuiltinID);
744
755
 
745
 
  llvm::Function *getIntrinsic(unsigned IID, ArrayRef<llvm::Type*> Tys =
746
 
                                                 ArrayRef<llvm::Type*>());
 
756
  llvm::Function *getIntrinsic(unsigned IID, ArrayRef<llvm::Type*> Tys = None);
747
757
 
748
758
  /// EmitTopLevelDecl - Emit code for a single top level declaration.
749
759
  void EmitTopLevelDecl(Decl *D);
899
909
 
900
910
  void EmitVTable(CXXRecordDecl *Class, bool DefinitionRequired);
901
911
 
 
912
  /// \brief Appends Opts to the "Linker Options" metadata value.
 
913
  void AppendLinkerOptions(StringRef Opts);
 
914
 
 
915
  /// \brief Appends a dependent lib to the "Linker Options" metadata value.
 
916
  void AddDependentLib(StringRef Lib);
 
917
 
902
918
  llvm::GlobalVariable::LinkageTypes
903
919
  getFunctionLinkage(const FunctionDecl *FD);
904
920
 
1009
1025
 
1010
1026
  void EmitNamespace(const NamespaceDecl *D);
1011
1027
  void EmitLinkageSpec(const LinkageSpecDecl *D);
 
1028
  void CompleteDIClassType(const CXXMethodDecl* D);
1012
1029
 
1013
1030
  /// EmitCXXConstructors - Emit constructors (base, complete) from a
1014
1031
  /// C++ constructor Decl.
1026
1043
  /// a C++ destructor Decl.
1027
1044
  void EmitCXXDestructor(const CXXDestructorDecl *D, CXXDtorType Type);
1028
1045
 
 
1046
  /// \brief Emit the function that initializes C++ thread_local variables.
 
1047
  void EmitCXXThreadLocalInitFunc();
 
1048
 
1029
1049
  /// EmitCXXGlobalInitFunc - Emit the function that initializes C++ globals.
1030
1050
  void EmitCXXGlobalInitFunc();
1031
1051