File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- // ===--- Interpreter.h - Incremental Compiation and Execution ---*- C++ -* -===//
1
+ // ===------------ Value.cpp - Definition of interpreter value ------------ -===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
22
22
#include < cstdint>
23
23
#include < utility>
24
24
25
- using namespace clang ;
26
-
27
25
namespace {
28
26
29
27
// This is internal buffer maintained by Value, used to hold temporaries.
@@ -61,7 +59,7 @@ class ValueStorage {
61
59
void Release () {
62
60
assert (RefCnt > 0 && " Can't release if reference count is already zero" );
63
61
if (--RefCnt == 0 ) {
64
- // We hace a non-trivial dtor.
62
+ // We have a non-trivial dtor.
65
63
if (Dtor && IsAlive ()) {
66
64
assert (Elements && " We at least should have 1 element in Value" );
67
65
size_t Stride = AllocSize / Elements;
@@ -97,6 +95,8 @@ class ValueStorage {
97
95
};
98
96
} // namespace
99
97
98
+ namespace clang {
99
+
100
100
static Value::Kind ConvertQualTypeToKind (const ASTContext &Ctx, QualType QT) {
101
101
if (Ctx.hasSameType (QT, Ctx.VoidTy ))
102
102
return Value::K_Void;
@@ -265,3 +265,5 @@ void Value::print(llvm::raw_ostream &Out) const {
265
265
assert (OpaqueType != nullptr && " Can't print default Value" );
266
266
Out << " Not implement yet.\n " ;
267
267
}
268
+
269
+ } // namespace clang
You can’t perform that action at this time.
0 commit comments