aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/APValue.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2009-01-18 03:20:47 +0000
committerNate Begeman <natebegeman@mac.com>2009-01-18 03:20:47 +0000
commit59b5da6d853b4368b984700315adf7b37de05764 (patch)
treea87909833d6430bb5abcd31c866393a438fc67a8 /lib/AST/APValue.cpp
parent77ecb3a28f21496ecfdbb3d5f5b66b0d2abf48c9 (diff)
Support evaluation of vector constant expressions, and codegen of same.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62455 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/APValue.cpp')
-rw-r--r--lib/AST/APValue.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AST/APValue.cpp b/lib/AST/APValue.cpp
index 87d9fc3442..23e9e980c5 100644
--- a/lib/AST/APValue.cpp
+++ b/lib/AST/APValue.cpp
@@ -91,7 +91,9 @@ void APValue::print(llvm::raw_ostream &OS) const {
OS << "Float: " << GetApproxValue(getFloat());
return;
case Vector:
- OS << "Vector: <todo>";
+ OS << "Vector: " << getVectorElt(0);
+ for (unsigned i = 1; i != getVectorLength(); ++i)
+ OS << ", " << getVectorElt(i);
return;
case ComplexInt:
OS << "ComplexInt: " << getComplexIntReal() << ", " << getComplexIntImag();