llvm.org GIT mirror llvm / 4e505a4
Tidy up. Whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182689 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 7 years ago
1 changed file(s) with 11 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
2929 template class SmallVectorImpl;
3030
3131 /// This is an important class for using LLVM in a threaded context. It
32 /// (opaquely) owns and manages the core "global" data of LLVM's core
32 /// (opaquely) owns and manages the core "global" data of LLVM's core
3333 /// infrastructure, including the type and constant uniquing tables.
3434 /// LLVMContext itself provides no locking guarantees, so you should be careful
3535 /// to have one context per thread.
3838 LLVMContextImpl *const pImpl;
3939 LLVMContext();
4040 ~LLVMContext();
41
41
4242 // Pinned metadata names, which always have the same value. This is a
4343 // compile-time performance optimization, not a correctness optimization.
4444 enum {
5050 MD_tbaa_struct = 5, // "tbaa.struct"
5151 MD_invariant_load = 6 // "invariant.load"
5252 };
53
53
5454 /// getMDKindID - Return a unique non-zero ID for the specified metadata kind.
5555 /// This ID is uniqued across modules in the current LLVMContext.
5656 unsigned getMDKindID(StringRef Name) const;
57
57
5858 /// getMDKindNames - Populate client supplied SmallVector with the name for
5959 /// custom metadata IDs registered in this LLVMContext.
6060 void getMDKindNames(SmallVectorImpl &Result) const;
61
62
61
62
6363 typedef void (*InlineAsmDiagHandlerTy)(const SMDiagnostic&, void *Context,
6464 unsigned LocCookie);
65
65
6666 /// setInlineAsmDiagnosticHandler - This method sets a handler that is invoked
6767 /// when problems with inline asm are detected by the backend. The first
6868 /// argument is a function pointer and the second is a context pointer that
8080 /// getInlineAsmDiagnosticContext - Return the diagnostic context set by
8181 /// setInlineAsmDiagnosticHandler.
8282 void *getInlineAsmDiagnosticContext() const;
83
84
83
84
8585 /// emitError - Emit an error message to the currently installed error handler
8686 /// with optional location information. This function returns, so code should
8787 /// be prepared to drop the erroneous construct on the floor and "not crash".
9898 /// addModule - Register a module as being instantiated in this context. If
9999 /// the context is deleted, the module will be deleted as well.
100100 void addModule(Module*);
101
101
102102 /// removeModule - Unregister a module from this context.
103103 void removeModule(Module*);
104
104
105105 // Module needs access to the add/removeModule methods.
106106 friend class Module;
107107 };