Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
b150e1b1
Commit
b150e1b1
authored
13 years ago
by
Daniel Dunbar
Browse files
Options
Downloads
Patches
Plain Diff
[AST] Mark ASTContext::getTypeInfo and some friends as LLVM_READONLY.
llvm-svn: 152430
parent
0fbc2bd4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clang/include/clang/AST/ASTContext.h
+6
-4
6 additions, 4 deletions
clang/include/clang/AST/ASTContext.h
with
6 additions
and
4 deletions
clang/include/clang/AST/ASTContext.h
+
6
−
4
View file @
b150e1b1
...
...
@@ -34,6 +34,7 @@
#include
"llvm/ADT/SmallPtrSet.h"
#include
"llvm/ADT/TinyPtrVector.h"
#include
"llvm/Support/Allocator.h"
#include
"llvm/Support/Compiler.h"
#include
<vector>
namespace
llvm
{
...
...
@@ -1225,7 +1226,8 @@ public:
private:
CanQualType
getFromTargetType
(
unsigned
Type
)
const
;
std
::
pair
<
uint64_t
,
unsigned
>
getTypeInfoImpl
(
const
Type
*
T
)
const
;
std
::
pair
<
uint64_t
,
unsigned
>
getTypeInfoImpl
(
const
Type
*
T
)
const
LLVM_READONLY
;
//===--------------------------------------------------------------------===//
// Type Predicates.
...
...
@@ -1259,8 +1261,8 @@ public:
/// getTypeInfo - Get the size and alignment of the specified complete type in
/// bits.
std
::
pair
<
uint64_t
,
unsigned
>
getTypeInfo
(
const
Type
*
T
)
const
;
std
::
pair
<
uint64_t
,
unsigned
>
getTypeInfo
(
QualType
T
)
const
{
std
::
pair
<
uint64_t
,
unsigned
>
getTypeInfo
(
const
Type
*
T
)
const
LLVM_READONLY
;
std
::
pair
<
uint64_t
,
unsigned
>
getTypeInfo
(
QualType
T
)
const
LLVM_READONLY
{
return
getTypeInfo
(
T
.
getTypePtr
());
}
...
...
@@ -1661,7 +1663,7 @@ public:
// The width of an integer, as defined in C99 6.2.6.2. This is the number
// of bits in an integer type excluding any padding bits.
unsigned
getIntWidth
(
QualType
T
)
const
;
unsigned
getIntWidth
(
QualType
T
)
const
LLVM_READONLY
;
// Per C99 6.2.5p6, for every signed integer type, there is a corresponding
// unsigned integer type. This method takes a signed type, and returns the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment